ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/xmltv_parser/trunk/libxmltv/Core/XMLTVInstance.cs
(Generate patch)

Comparing trunk/libxmltv/Core/XMLTVInstance.cs (file contents):
Revision 44 by william, Fri Mar 8 03:36:44 2013 UTC vs.
Revision 45 by william, Fri Mar 8 03:41:18 2013 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines