markus / ConvertService / ConverterService / IConverterPDF / Cache.cs @ 8e5a4a6a
이력 | 보기 | 이력해설 | 다운로드 (1.28 KB)
1 | 7ca218b3 | KangIngu | using System; |
---|---|---|---|
2 | |||
3 | namespace IConverterPDF |
||
4 | { |
||
5 | |||
6 | public class Cache |
||
7 | { |
||
8 | private static Cache myInstance; |
||
9 | |||
10 | public static InterfaceConverterPDF Observer; |
||
11 | |||
12 | private Cache() |
||
13 | { |
||
14 | } |
||
15 | |||
16 | public static void Attach(InterfaceConverterPDF observer) |
||
17 | { |
||
18 | Observer = observer; |
||
19 | } |
||
20 | |||
21 | public static Cache GetInstance() |
||
22 | { |
||
23 | if(myInstance==null) |
||
24 | { |
||
25 | myInstance = new Cache(); |
||
26 | } |
||
27 | return myInstance; |
||
28 | } |
||
29 | |||
30 | 32e95118 | KangIngu | public ConverterPDFResult SetConverterPDF(string ProjectNo, string ConverterID) |
31 | 7ca218b3 | KangIngu | { |
32 | return Observer.Notify(ProjectNo, ConverterID); |
||
33 | } |
||
34 | |||
35 | public ServiceInfo ServiceInfomation() |
||
36 | { |
||
37 | return Observer.ServiceInfomation(); |
||
38 | } |
||
39 | |||
40 | public int MultiProcessCount |
||
41 | { |
||
42 | get |
||
43 | { |
||
44 | return Observer.MultiProcessCount; |
||
45 | } |
||
46 | |||
47 | set |
||
48 | { |
||
49 | Observer.MultiProcessCount = value; |
||
50 | } |
||
51 | } |
||
52 | |||
53 | 32e95118 | KangIngu | public string[] RunningProcessID() |
54 | 7ca218b3 | KangIngu | { |
55 | return Observer.RunningProcessID(); |
||
56 | } |
||
57 | |||
58 | public TileSorceStorageInfo[] TileSorceStorageInfomation() |
||
59 | { |
||
60 | return Observer.TileSorceStorageInfomation(); |
||
61 | } |
||
62 | |||
63 | 32e95118 | KangIngu | public bool ServiceOn(string ServiceID) |
64 | 7ca218b3 | KangIngu | { |
65 | return Observer.ServiceOn(ServiceID); |
||
66 | } |
||
67 | } |
||
68 | } |