/[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

--- trunk/libxmltv/Core/XMLTVInstance.cs	2013/03/08 04:01:25	46
+++ trunk/libxmltv/Core/XMLTVInstance.cs	2013/03/08 05:20:12	49
@@ -7,6 +7,7 @@
 
 namespace libxmltv.Core
 {
+    [Serializable]
     internal class XMLTVRuntimeInstance : MarshalByRefObject, IXMLTVRuntimeInstance
     {
         public XMLTVRuntimeInstance(string xmlfile) : this(xmlfile, null) { }
@@ -14,16 +15,16 @@
         private void CreateInstance(string xmlfile, EventHandler<CancelEventArgs> t)
         {
             CancelEvent = t;
-            using (Instance = new XMLTVInstance(xmlfile, this))
+            using (XMLTVInstance instance = new XMLTVInstance(xmlfile, this))
             {
             }
         }
 
-        internal XMLTVInstance Instance { get; private set; }
+        //internal XMLTVInstance Instance { get; private set; }
 
         #region IXMLTV_LOADER members
         public System.IO.FileInfo XmlFile { get; set; }
-        public System.Xml.Linq.XDocument XmlDoc { get; set; }
+        public string XmlDoc { get; set; }
         #endregion
         #region IXMLTV_PARSER Members
         public IXMLTVSource Source { get; set; }
@@ -31,6 +32,13 @@
         public Dictionary<int, IXMLTVProgram> Programs { get; set; }
         #endregion   
     
+        internal IXMLTVSerializer<IXMLTVRuntimeInstance> Serializer
+        {
+            get 
+            {
+                return new XMLTVSerializer<IXMLTVRuntimeInstance>(this);
+            }
+        }
         //public void Dispose()
         //{
         //    IsDisposing = true;

 

  ViewVC Help
Powered by ViewVC 1.1.22