markus / ConvertService / ConverterService / IConverterPDF / InterfaceConverterPDF.cs @ 3035602a
이력 | 보기 | 이력해설 | 다운로드 (1.82 KB)
1 |
using System; |
---|---|
2 |
using System.Collections.Generic; |
3 |
using System.Linq; |
4 |
using System.Text; |
5 |
|
6 |
namespace IConverterPDF |
7 |
{ |
8 |
public interface InterfaceConverterPDF |
9 |
{ |
10 |
ConverterPDFResult Notify(string ProjectNo, string ConverterID); |
11 |
int MultiProcessCount { get; set; } |
12 |
string[] RunningProcessID(); |
13 |
ServiceInfo ServiceInfomation(); |
14 |
TileSorceStorageInfo[] TileSorceStorageInfomation(); |
15 |
bool ServiceOn(string ServiceID); |
16 |
|
17 |
} |
18 |
|
19 |
[Serializable] |
20 |
public struct ConverterPDFResult |
21 |
{ |
22 |
public string ProjectNo; |
23 |
public string ConverterID; |
24 |
public int CurrentPage; |
25 |
public ConverterStatus Status; |
26 |
public string Exception; |
27 |
} |
28 |
|
29 |
[Serializable] |
30 |
public struct ServiceInfo |
31 |
{ |
32 |
public string ServiceID; |
33 |
public Uri ServiceUri; |
34 |
public TileSorceStorageInfo[] StorageInfo; |
35 |
public string Exception; |
36 |
} |
37 |
|
38 |
[Serializable] |
39 |
public struct TileSorceStorageInfo |
40 |
{ |
41 |
public string FolderName; |
42 |
public long FreeSpace; |
43 |
public bool Access; |
44 |
} |
45 |
|
46 |
public enum ConverterStatus |
47 |
{ |
48 |
/// <summary> |
49 |
/// Final PDF를 만들기 위한 순서에 추가 |
50 |
/// </summary> |
51 |
Insert = 0, |
52 |
|
53 |
/// <summary> |
54 |
/// 앞의 final이 처리중일때 대기 |
55 |
/// </summary> |
56 |
Wait = 1, |
57 |
|
58 |
/// <summary> |
59 |
/// 다운로드중 |
60 |
/// </summary> |
61 |
Create = 2, |
62 |
|
63 |
/// <summary> |
64 |
/// 만들고 있는중 |
65 |
/// 이때 데이터베이스에 Current Page는 만들고 있는 페이지 |
66 |
/// </summary> |
67 |
Crop = 3, |
68 |
|
69 |
/// <summary> |
70 |
/// final pdf 완료시 |
71 |
/// </summary> |
72 |
Success = 4, |
73 |
|
74 |
|
75 |
/// <summary> |
76 |
/// 에러 |
77 |
/// </summary> |
78 |
Error = 5, |
79 |
|
80 |
PageTOImage = 6 |
81 |
} |
82 |
} |