markus / KCOM / Web References / kr.co.devdoftech.cloud / Reference.cs @ a4aac5fe
이력 | 보기 | 이력해설 | 다운로드 (9.7 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.kr.co.devdoftech.cloud { |
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.8.4084.0")] |
27 |
[System.Diagnostics.DebuggerStepThroughAttribute()] |
28 |
[System.ComponentModel.DesignerCategoryAttribute("code")] |
29 |
[System.Web.Services.WebServiceBindingAttribute(Name="FileUploadSoap", Namespace="http://tempuri.org/")] |
30 |
public partial class FileUpload : System.Web.Services.Protocols.SoapHttpClientProtocol { |
31 |
|
32 |
private System.Threading.SendOrPostCallback RunOperationCompleted; |
33 |
|
34 |
private System.Threading.SendOrPostCallback RunSymbolOperationCompleted; |
35 |
|
36 |
private bool useDefaultCredentialsSetExplicitly; |
37 |
|
38 |
/// <remarks/> |
39 |
public FileUpload() { |
40 |
this.Url = global::KCOM.Properties.Settings.Default.KCOM_kr_co_devdoftech_cloud_FileUpload; |
41 |
if ((this.IsLocalFileSystemWebService(this.Url) == true)) { |
42 |
this.UseDefaultCredentials = true; |
43 |
this.useDefaultCredentialsSetExplicitly = false; |
44 |
} |
45 |
else { |
46 |
this.useDefaultCredentialsSetExplicitly = true; |
47 |
} |
48 |
} |
49 |
|
50 |
public new string Url { |
51 |
get { |
52 |
return base.Url; |
53 |
} |
54 |
set { |
55 |
if ((((this.IsLocalFileSystemWebService(base.Url) == true) |
56 |
&& (this.useDefaultCredentialsSetExplicitly == false)) |
57 |
&& (this.IsLocalFileSystemWebService(value) == false))) { |
58 |
base.UseDefaultCredentials = false; |
59 |
} |
60 |
base.Url = value; |
61 |
} |
62 |
} |
63 |
|
64 |
public new bool UseDefaultCredentials { |
65 |
get { |
66 |
return base.UseDefaultCredentials; |
67 |
} |
68 |
set { |
69 |
base.UseDefaultCredentials = value; |
70 |
this.useDefaultCredentialsSetExplicitly = true; |
71 |
} |
72 |
} |
73 |
|
74 |
/// <remarks/> |
75 |
public event RunCompletedEventHandler RunCompleted; |
76 |
|
77 |
/// <remarks/> |
78 |
public event RunSymbolCompletedEventHandler RunSymbolCompleted; |
79 |
|
80 |
/// <remarks/> |
81 |
[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)] |
82 |
public string Run(string ProjectNo, string VPNo, string UserID, string FileName, [System.Xml.Serialization.XmlElementAttribute(DataType="base64Binary")] byte[] f) { |
83 |
object[] results = this.Invoke("Run", new object[] { |
84 |
ProjectNo, |
85 |
VPNo, |
86 |
UserID, |
87 |
FileName, |
88 |
f}); |
89 |
return ((string)(results[0])); |
90 |
} |
91 |
|
92 |
/// <remarks/> |
93 |
public void RunAsync(string ProjectNo, string VPNo, string UserID, string FileName, byte[] f) { |
94 |
this.RunAsync(ProjectNo, VPNo, UserID, FileName, f, null); |
95 |
} |
96 |
|
97 |
/// <remarks/> |
98 |
public void RunAsync(string ProjectNo, string VPNo, string UserID, string FileName, byte[] f, object userState) { |
99 |
if ((this.RunOperationCompleted == null)) { |
100 |
this.RunOperationCompleted = new System.Threading.SendOrPostCallback(this.OnRunOperationCompleted); |
101 |
} |
102 |
this.InvokeAsync("Run", new object[] { |
103 |
ProjectNo, |
104 |
VPNo, |
105 |
UserID, |
106 |
FileName, |
107 |
f}, this.RunOperationCompleted, userState); |
108 |
} |
109 |
|
110 |
private void OnRunOperationCompleted(object arg) { |
111 |
if ((this.RunCompleted != null)) { |
112 |
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); |
113 |
this.RunCompleted(this, new RunCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); |
114 |
} |
115 |
} |
116 |
|
117 |
/// <remarks/> |
118 |
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/RunSymbol", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] |
119 |
public string RunSymbol(string ProjectNo, string VPNo, string UserID, string FileName, [System.Xml.Serialization.XmlElementAttribute(DataType="base64Binary")] byte[] f) { |
120 |
object[] results = this.Invoke("RunSymbol", new object[] { |
121 |
ProjectNo, |
122 |
VPNo, |
123 |
UserID, |
124 |
FileName, |
125 |
f}); |
126 |
return ((string)(results[0])); |
127 |
} |
128 |
|
129 |
/// <remarks/> |
130 |
public void RunSymbolAsync(string ProjectNo, string VPNo, string UserID, string FileName, byte[] f) { |
131 |
this.RunSymbolAsync(ProjectNo, VPNo, UserID, FileName, f, null); |
132 |
} |
133 |
|
134 |
/// <remarks/> |
135 |
public void RunSymbolAsync(string ProjectNo, string VPNo, string UserID, string FileName, byte[] f, object userState) { |
136 |
if ((this.RunSymbolOperationCompleted == null)) { |
137 |
this.RunSymbolOperationCompleted = new System.Threading.SendOrPostCallback(this.OnRunSymbolOperationCompleted); |
138 |
} |
139 |
this.InvokeAsync("RunSymbol", new object[] { |
140 |
ProjectNo, |
141 |
VPNo, |
142 |
UserID, |
143 |
FileName, |
144 |
f}, this.RunSymbolOperationCompleted, userState); |
145 |
} |
146 |
|
147 |
private void OnRunSymbolOperationCompleted(object arg) { |
148 |
if ((this.RunSymbolCompleted != null)) { |
149 |
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); |
150 |
this.RunSymbolCompleted(this, new RunSymbolCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); |
151 |
} |
152 |
} |
153 |
|
154 |
/// <remarks/> |
155 |
public new void CancelAsync(object userState) { |
156 |
base.CancelAsync(userState); |
157 |
} |
158 |
|
159 |
private bool IsLocalFileSystemWebService(string url) { |
160 |
if (((url == null) |
161 |
|| (url == string.Empty))) { |
162 |
return false; |
163 |
} |
164 |
System.Uri wsUri = new System.Uri(url); |
165 |
if (((wsUri.Port >= 1024) |
166 |
&& (string.Compare(wsUri.Host, "localHost", System.StringComparison.OrdinalIgnoreCase) == 0))) { |
167 |
return true; |
168 |
} |
169 |
return false; |
170 |
} |
171 |
} |
172 |
|
173 |
/// <remarks/> |
174 |
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.4084.0")] |
175 |
public delegate void RunCompletedEventHandler(object sender, RunCompletedEventArgs e); |
176 |
|
177 |
/// <remarks/> |
178 |
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.4084.0")] |
179 |
[System.Diagnostics.DebuggerStepThroughAttribute()] |
180 |
[System.ComponentModel.DesignerCategoryAttribute("code")] |
181 |
public partial class RunCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { |
182 |
|
183 |
private object[] results; |
184 |
|
185 |
internal RunCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : |
186 |
base(exception, cancelled, userState) { |
187 |
this.results = results; |
188 |
} |
189 |
|
190 |
/// <remarks/> |
191 |
public string Result { |
192 |
get { |
193 |
this.RaiseExceptionIfNecessary(); |
194 |
return ((string)(this.results[0])); |
195 |
} |
196 |
} |
197 |
} |
198 |
|
199 |
/// <remarks/> |
200 |
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.4084.0")] |
201 |
public delegate void RunSymbolCompletedEventHandler(object sender, RunSymbolCompletedEventArgs e); |
202 |
|
203 |
/// <remarks/> |
204 |
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.4084.0")] |
205 |
[System.Diagnostics.DebuggerStepThroughAttribute()] |
206 |
[System.ComponentModel.DesignerCategoryAttribute("code")] |
207 |
public partial class RunSymbolCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { |
208 |
|
209 |
private object[] results; |
210 |
|
211 |
internal RunSymbolCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : |
212 |
base(exception, cancelled, userState) { |
213 |
this.results = results; |
214 |
} |
215 |
|
216 |
/// <remarks/> |
217 |
public string Result { |
218 |
get { |
219 |
this.RaiseExceptionIfNecessary(); |
220 |
return ((string)(this.results[0])); |
221 |
} |
222 |
} |
223 |
} |
224 |
} |
225 |
|
226 |
#pragma warning restore 1591 |