markus / FinalService / FinalServiceBase / IFinalPDF / Cache.cs @ master
이력 | 보기 | 이력해설 | 다운로드 (778 Bytes)
1 | 42d49521 | taeseongkim | using System; |
---|---|---|---|
2 | using System.Collections.Generic; |
||
3 | using System.Linq; |
||
4 | using System.Text; |
||
5 | |||
6 | namespace IFinalPDF |
||
7 | { |
||
8 | public class Cache |
||
9 | { |
||
10 | private static Cache myInstance; |
||
11 | public static InterfaceFinalPDF Observer; |
||
12 | |||
13 | private Cache() |
||
14 | { |
||
15 | |||
16 | } |
||
17 | |||
18 | public static void Attach(InterfaceFinalPDF observer) |
||
19 | { |
||
20 | Observer = observer; |
||
21 | } |
||
22 | |||
23 | public static Cache GetInstance() |
||
24 | { |
||
25 | if (myInstance == null) |
||
26 | { |
||
27 | myInstance = new Cache(); |
||
28 | } |
||
29 | return myInstance; |
||
30 | } |
||
31 | //public Final |
||
32 | public FinalPDFResult SetFinalPDF(string ProjectNo, string FinalID) |
||
33 | { |
||
34 | return Observer.Notify(ProjectNo, FinalID); |
||
35 | } |
||
36 | } |
||
37 | |||
38 | } |