프로젝트

일반

사용자정보

통계
| 브랜치(Branch): | 개정판:

markus / ConvertService / ConverterService / IConverterPDF / Cache.cs @ fc4e50f2

이력 | 보기 | 이력해설 | 다운로드 (1.28 KB)

1
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
		public ConverterPDFResult SetConverterPDF(string ProjectNo, string ConverterID)
31
		{
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
        public string[] RunningProcessID()
54
        {
55
            return Observer.RunningProcessID();
56
        }
57

    
58
        public TileSorceStorageInfo[] TileSorceStorageInfomation()
59
        {
60
            return Observer.TileSorceStorageInfomation();
61
        }
62

    
63
        public bool ServiceOn(string ServiceID)
64
        {
65
            return Observer.ServiceOn(ServiceID);
66
        }
67
	}
68
}
클립보드 이미지 추가 (최대 크기: 500 MB)