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

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

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

revision 44 by william, Fri Mar 8 03:36:44 2013 UTC revision 45 by william, Fri Mar 8 03:41:18 2013 UTC
# Line 6  using libxmltv.Interfaces; Line 6  using libxmltv.Interfaces;
6    
7  namespace libxmltv.Core  namespace libxmltv.Core
8  {  {
9      internal class XMLTVRuntimeInstance : MarshalByRefObject, IXMLTVRuntimeInstance, IDisposable      internal class XMLTVRuntimeInstance : MarshalByRefObject, IXMLTVRuntimeInstance
10      {      {
11          public XMLTVRuntimeInstance(string xmlfile) { CreateInstance(xmlfile); }          public XMLTVRuntimeInstance(string xmlfile) { CreateInstance(xmlfile); }
12          private void CreateInstance(string xmlfile) { Instance = new XMLTVInstance(xmlfile, this); }          private void CreateInstance(string xmlfile)
13            {
14                using (Instance = new XMLTVInstance(xmlfile, this))
15                {
16                }
17            }
18          internal XMLTVInstance Instance { get; private set; }          internal XMLTVInstance Instance { get; private set; }
19    
20          #region IXMLTV_LOADER members          #region IXMLTV_LOADER members
# Line 22  namespace libxmltv.Core Line 27  namespace libxmltv.Core
27          public Dictionary<int, IXMLTVProgram> Programs { get; set; }          public Dictionary<int, IXMLTVProgram> Programs { get; set; }
28          #endregion            #endregion  
29            
30          public void Dispose()          //public void Dispose()
31          {          //{
32              IsDisposing = true;          //    IsDisposing = true;
33              //throw new NotImplementedException();          //    //throw new NotImplementedException();
34          }          //}
35          public bool IsDisposing { get; private set; }          public bool IsDisposing { get; private set; }
36      }      }
37    

Legend:
Removed from v.44  
changed lines
  Added in v.45

  ViewVC Help
Powered by ViewVC 1.1.22