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