프로젝트

일반

사용자정보

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

markus / KCOM / Web References / Get_FinalImage / Reference.cs @ 84c48033

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

1
//------------------------------------------------------------------------------
2
// <auto-generated>
3
//     이 코드는 도구를 사용하여 생성되었습니다.
4
//     런타임 버전:4.0.30319.42000
5
//
6
//     파일 내용을 변경하면 잘못된 동작이 발생할 수 있으며, 코드를 다시 생성하면
7
//     이러한 변경 내용이 손실됩니다.
8
// </auto-generated>
9
//------------------------------------------------------------------------------
10

    
11
// 
12
// 이 소스 코드가 Microsoft.VSDesigner, 버전 4.0.30319.42000에서 자동으로 생성되었습니다.
13
// 
14
#pragma warning disable 1591
15

    
16
namespace KCOM.Get_FinalImage {
17
    using System;
18
    using System.Web.Services;
19
    using System.Diagnostics;
20
    using System.Web.Services.Protocols;
21
    using System.Xml.Serialization;
22
    using System.ComponentModel;
23
    
24
    
25
    /// <remarks/>
26
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.7.3056.0")]
27
    [System.Diagnostics.DebuggerStepThroughAttribute()]
28
    [System.ComponentModel.DesignerCategoryAttribute("code")]
29
    [System.Web.Services.WebServiceBindingAttribute(Name="Get_PdfImageSoap", Namespace="http://tempuri.org/")]
30
    public partial class Get_PdfImage : System.Web.Services.Protocols.SoapHttpClientProtocol {
31
        
32
        private System.Threading.SendOrPostCallback RunOperationCompleted;
33
        
34
        private bool useDefaultCredentialsSetExplicitly;
35
        
36
        /// <remarks/>
37
        public Get_PdfImage() {
38
            this.Url = CommonLib.Common.GetConfigString("KCOM_Get_FinalImage_Get_PdfImage", "URL", "", App.isExternal);            
39
            if ((this.IsLocalFileSystemWebService(this.Url) == true)) {
40
                this.UseDefaultCredentials = true;
41
                this.useDefaultCredentialsSetExplicitly = false;
42
            }
43
            else {
44
                this.useDefaultCredentialsSetExplicitly = true;
45
            }
46
        }
47
        
48
        public new string Url {
49
            get {
50
                return base.Url;
51
            }
52
            set {
53
                if ((((this.IsLocalFileSystemWebService(base.Url) == true) 
54
                            && (this.useDefaultCredentialsSetExplicitly == false)) 
55
                            && (this.IsLocalFileSystemWebService(value) == false))) {
56
                    base.UseDefaultCredentials = false;
57
                }
58
                base.Url = value;
59
            }
60
        }
61
        
62
        public new bool UseDefaultCredentials {
63
            get {
64
                return base.UseDefaultCredentials;
65
            }
66
            set {
67
                base.UseDefaultCredentials = value;
68
                this.useDefaultCredentialsSetExplicitly = true;
69
            }
70
        }
71
        
72
        /// <remarks/>
73
        public event RunCompletedEventHandler RunCompleted;
74
        
75
        /// <remarks/>
76
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/Run", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
77
        public string Run(string Document_Url, string Project_No, string Document_ID, int PageNumber) {
78
            object[] results = this.Invoke("Run", new object[] {
79
                        Document_Url,
80
                        Project_No,
81
                        Document_ID,
82
                        PageNumber});
83
            return ((string)(results[0]));
84
        }
85
        
86
        /// <remarks/>
87
        public void RunAsync(string Document_Url, string Project_No, string Document_ID, int PageNumber) {
88
            this.RunAsync(Document_Url, Project_No, Document_ID, PageNumber, null);
89
        }
90
        
91
        /// <remarks/>
92
        public void RunAsync(string Document_Url, string Project_No, string Document_ID, int PageNumber, object userState) {
93
            if ((this.RunOperationCompleted == null)) {
94
                this.RunOperationCompleted = new System.Threading.SendOrPostCallback(this.OnRunOperationCompleted);
95
            }
96
            this.InvokeAsync("Run", new object[] {
97
                        Document_Url,
98
                        Project_No,
99
                        Document_ID,
100
                        PageNumber}, this.RunOperationCompleted, userState);
101
        }
102
        
103
        private void OnRunOperationCompleted(object arg) {
104
            if ((this.RunCompleted != null)) {
105
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
106
                this.RunCompleted(this, new RunCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
107
            }
108
        }
109
        
110
        /// <remarks/>
111
        public new void CancelAsync(object userState) {
112
            base.CancelAsync(userState);
113
        }
114
        
115
        private bool IsLocalFileSystemWebService(string url) {
116
            if (((url == null) 
117
                        || (url == string.Empty))) {
118
                return false;
119
            }
120
            System.Uri wsUri = new System.Uri(url);
121
            if (((wsUri.Port >= 1024) 
122
                        && (string.Compare(wsUri.Host, "localHost", System.StringComparison.OrdinalIgnoreCase) == 0))) {
123
                return true;
124
            }
125
            return false;
126
        }
127
    }
128
    
129
    /// <remarks/>
130
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.7.3056.0")]
131
    public delegate void RunCompletedEventHandler(object sender, RunCompletedEventArgs e);
132
    
133
    /// <remarks/>
134
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.7.3056.0")]
135
    [System.Diagnostics.DebuggerStepThroughAttribute()]
136
    [System.ComponentModel.DesignerCategoryAttribute("code")]
137
    public partial class RunCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
138
        
139
        private object[] results;
140
        
141
        internal RunCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
142
                base(exception, cancelled, userState) {
143
            this.results = results;
144
        }
145
        
146
        /// <remarks/>
147
        public string Result {
148
            get {
149
                this.RaiseExceptionIfNecessary();
150
                return ((string)(this.results[0]));
151
            }
152
        }
153
    }
154
}
155

    
156
#pragma warning restore 1591
클립보드 이미지 추가 (최대 크기: 500 MB)