/[xmltv_parser]/trunk/libxmltv/Core/XMLTVRuntimeInstance.cs
ViewVC logotype

Diff of /trunk/libxmltv/Core/XMLTVRuntimeInstance.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 56 by william, Fri Mar 8 12:05:33 2013 UTC revision 58 by william, Fri Mar 8 12:20:50 2013 UTC
# Line 117  namespace libxmltv.Core Line 117  namespace libxmltv.Core
117              {              {
118                  throw new NullReferenceException("Failed to load from instance because the instance is null.");                  throw new NullReferenceException("Failed to load from instance because the instance is null.");
119              }              }
120              xmltv_logger.Debug.WriteLine("Loading from instance: '{0}'", instance.XmlFile.Name);              
121              if (instance.Source != null)              if (instance.Source != null)
122              {              {
123                  xmltv_logger.Info.WriteLine("{0}", instance.Source.ToString());                  xmltv_logger.Debug.WriteLine("Loading from instance...");
124                    xmltv_logger.Info.WriteLine("Source Loaded: '{0}' Created by '{1}' - original source file: '{2}'", instance.Source.SourceName, instance.Source.GeneratorName, instance.XmlFile.FullName);
125              }              }
126              else              else
127              {              {
128                  xmltv_logger.Error.WriteLine("The Instance's Source Property is null.");                  xmltv_logger.Error.WriteLine("The Instance's Source Property is null.");
129                    throw new NullReferenceException("The Instance's Source Property is null.");
130              }              }
131              if (instance.Channels != null)              if (instance.Channels != null)
132              {              {
133                  xmltv_logger.Info.WriteLine("Loaded: {0} Channels", instance.Channels.Count);                  xmltv_logger.Info.WriteLine("Source Loaded: '{0}' Channels from source '{1}'", instance.Channels.Count, instance.Source.SourceName);
134              }              }
135              else              else
136              {              {
137                  xmltv_logger.Error.WriteLine("The Instance's Channels Property is null.");                  xmltv_logger.Error.WriteLine("The Instance's Channels Property is null.");
138                    throw new NullReferenceException("The Instance's Channels Property is null.");
139              }              }
140              if (instance.Programs != null)              if (instance.Programs != null)
141              {              {
142                  xmltv_logger.Info.WriteLine("Loaded: {0} Programs", instance.Programs.Count);                  xmltv_logger.Info.WriteLine("Source Loaded: '{0}' Programs from source '{1}", instance.Programs.Count, instance.Source.SourceName);
143              }              }
144              else              else
145              {              {
146                  xmltv_logger.Error.WriteLine("The Instance's Programs Property is null.");                  xmltv_logger.Error.WriteLine("The Instance's Programs Property is null.");
147                    throw new NullReferenceException("The Instance's Programs Property is null.");
148              }              }
149              CloneFromInstance(ref instance);              CloneFromInstance(ref instance);
150              //if (OnInstanceCreated != null)              //if (OnInstanceCreated != null)

Legend:
Removed from v.56  
changed lines
  Added in v.58

  ViewVC Help
Powered by ViewVC 1.1.22