--- trunk/libxmltv/Core/XMLTVInstance.cs 2013/03/08 04:24:01 48 +++ 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 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 Programs { get; set; } #endregion + internal IXMLTVSerializer Serializer + { + get + { + return new XMLTVSerializer(this); + } + } //public void Dispose() //{ // IsDisposing = true;