markus / KCOM / Web References / kr.co.devdoftech.cloud / Reference.cs @ 01f4709a
이력 | 보기 | 이력해설 | 다운로드 (15.3 KB)
1 | 787a4489 | KangIngu | //------------------------------------------------------------------------------ |
---|---|---|---|
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 | f1f822e9 | taeseongkim | [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9037.0")] |
27 | 787a4489 | KangIngu | [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 | f1f822e9 | taeseongkim | private System.Threading.SendOrPostCallback RunSymbolOperationCompleted; |
35 | |||
36 | private System.Threading.SendOrPostCallback ServerMapPathTestOperationCompleted; |
||
37 | |||
38 | private System.Threading.SendOrPostCallback SymbolRegenOperationCompleted; |
||
39 | |||
40 | 787a4489 | KangIngu | private bool useDefaultCredentialsSetExplicitly; |
41 | |||
42 | /// <remarks/> |
||
43 | public FileUpload() { |
||
44 | 76dc223b | taeseongkim | this.Url = global::KCOM.Properties.Settings.Default.KCOM_kr_co_devdoftech_cloud_FileUpload; |
45 | 787a4489 | KangIngu | if ((this.IsLocalFileSystemWebService(this.Url) == true)) { |
46 | this.UseDefaultCredentials = true; |
||
47 | this.useDefaultCredentialsSetExplicitly = false; |
||
48 | } |
||
49 | else { |
||
50 | this.useDefaultCredentialsSetExplicitly = true; |
||
51 | } |
||
52 | } |
||
53 | |||
54 | public new string Url { |
||
55 | get { |
||
56 | return base.Url; |
||
57 | } |
||
58 | set { |
||
59 | if ((((this.IsLocalFileSystemWebService(base.Url) == true) |
||
60 | && (this.useDefaultCredentialsSetExplicitly == false)) |
||
61 | && (this.IsLocalFileSystemWebService(value) == false))) { |
||
62 | base.UseDefaultCredentials = false; |
||
63 | } |
||
64 | base.Url = value; |
||
65 | } |
||
66 | } |
||
67 | |||
68 | public new bool UseDefaultCredentials { |
||
69 | get { |
||
70 | return base.UseDefaultCredentials; |
||
71 | } |
||
72 | set { |
||
73 | base.UseDefaultCredentials = value; |
||
74 | this.useDefaultCredentialsSetExplicitly = true; |
||
75 | } |
||
76 | } |
||
77 | |||
78 | /// <remarks/> |
||
79 | public event RunCompletedEventHandler RunCompleted; |
||
80 | |||
81 | /// <remarks/> |
||
82 | f1f822e9 | taeseongkim | public event RunSymbolCompletedEventHandler RunSymbolCompleted; |
83 | |||
84 | /// <remarks/> |
||
85 | public event ServerMapPathTestCompletedEventHandler ServerMapPathTestCompleted; |
||
86 | |||
87 | /// <remarks/> |
||
88 | public event SymbolRegenCompletedEventHandler SymbolRegenCompleted; |
||
89 | |||
90 | /// <remarks/> |
||
91 | 787a4489 | KangIngu | [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)] |
92 | public string Run(string ProjectNo, string VPNo, string UserID, string FileName, [System.Xml.Serialization.XmlElementAttribute(DataType="base64Binary")] byte[] f) { |
||
93 | object[] results = this.Invoke("Run", new object[] { |
||
94 | ProjectNo, |
||
95 | VPNo, |
||
96 | UserID, |
||
97 | FileName, |
||
98 | f}); |
||
99 | return ((string)(results[0])); |
||
100 | } |
||
101 | |||
102 | /// <remarks/> |
||
103 | public void RunAsync(string ProjectNo, string VPNo, string UserID, string FileName, byte[] f) { |
||
104 | this.RunAsync(ProjectNo, VPNo, UserID, FileName, f, null); |
||
105 | } |
||
106 | |||
107 | /// <remarks/> |
||
108 | public void RunAsync(string ProjectNo, string VPNo, string UserID, string FileName, byte[] f, object userState) { |
||
109 | if ((this.RunOperationCompleted == null)) { |
||
110 | this.RunOperationCompleted = new System.Threading.SendOrPostCallback(this.OnRunOperationCompleted); |
||
111 | } |
||
112 | this.InvokeAsync("Run", new object[] { |
||
113 | ProjectNo, |
||
114 | VPNo, |
||
115 | UserID, |
||
116 | FileName, |
||
117 | f}, this.RunOperationCompleted, userState); |
||
118 | } |
||
119 | |||
120 | private void OnRunOperationCompleted(object arg) { |
||
121 | if ((this.RunCompleted != null)) { |
||
122 | System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); |
||
123 | this.RunCompleted(this, new RunCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); |
||
124 | } |
||
125 | } |
||
126 | |||
127 | /// <remarks/> |
||
128 | f1f822e9 | taeseongkim | [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)] |
129 | public string RunSymbol(string ProjectNo, string VPNo, string UserID, string FileName, [System.Xml.Serialization.XmlElementAttribute(DataType="base64Binary")] byte[] f) { |
||
130 | object[] results = this.Invoke("RunSymbol", new object[] { |
||
131 | ProjectNo, |
||
132 | VPNo, |
||
133 | UserID, |
||
134 | FileName, |
||
135 | f}); |
||
136 | return ((string)(results[0])); |
||
137 | } |
||
138 | |||
139 | /// <remarks/> |
||
140 | public void RunSymbolAsync(string ProjectNo, string VPNo, string UserID, string FileName, byte[] f) { |
||
141 | this.RunSymbolAsync(ProjectNo, VPNo, UserID, FileName, f, null); |
||
142 | } |
||
143 | |||
144 | /// <remarks/> |
||
145 | public void RunSymbolAsync(string ProjectNo, string VPNo, string UserID, string FileName, byte[] f, object userState) { |
||
146 | if ((this.RunSymbolOperationCompleted == null)) { |
||
147 | this.RunSymbolOperationCompleted = new System.Threading.SendOrPostCallback(this.OnRunSymbolOperationCompleted); |
||
148 | } |
||
149 | this.InvokeAsync("RunSymbol", new object[] { |
||
150 | ProjectNo, |
||
151 | VPNo, |
||
152 | UserID, |
||
153 | FileName, |
||
154 | f}, this.RunSymbolOperationCompleted, userState); |
||
155 | } |
||
156 | |||
157 | private void OnRunSymbolOperationCompleted(object arg) { |
||
158 | if ((this.RunSymbolCompleted != null)) { |
||
159 | System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); |
||
160 | this.RunSymbolCompleted(this, new RunSymbolCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); |
||
161 | } |
||
162 | } |
||
163 | |||
164 | /// <remarks/> |
||
165 | [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/ServerMapPathTest", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] |
||
166 | public string ServerMapPathTest(string uri) { |
||
167 | object[] results = this.Invoke("ServerMapPathTest", new object[] { |
||
168 | uri}); |
||
169 | return ((string)(results[0])); |
||
170 | } |
||
171 | |||
172 | /// <remarks/> |
||
173 | public void ServerMapPathTestAsync(string uri) { |
||
174 | this.ServerMapPathTestAsync(uri, null); |
||
175 | } |
||
176 | |||
177 | /// <remarks/> |
||
178 | public void ServerMapPathTestAsync(string uri, object userState) { |
||
179 | if ((this.ServerMapPathTestOperationCompleted == null)) { |
||
180 | this.ServerMapPathTestOperationCompleted = new System.Threading.SendOrPostCallback(this.OnServerMapPathTestOperationCompleted); |
||
181 | } |
||
182 | this.InvokeAsync("ServerMapPathTest", new object[] { |
||
183 | uri}, this.ServerMapPathTestOperationCompleted, userState); |
||
184 | } |
||
185 | |||
186 | private void OnServerMapPathTestOperationCompleted(object arg) { |
||
187 | if ((this.ServerMapPathTestCompleted != null)) { |
||
188 | System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); |
||
189 | this.ServerMapPathTestCompleted(this, new ServerMapPathTestCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); |
||
190 | } |
||
191 | } |
||
192 | |||
193 | /// <remarks/> |
||
194 | [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/SymbolRegen", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] |
||
195 | public string SymbolRegen() { |
||
196 | object[] results = this.Invoke("SymbolRegen", new object[0]); |
||
197 | return ((string)(results[0])); |
||
198 | } |
||
199 | |||
200 | /// <remarks/> |
||
201 | public void SymbolRegenAsync() { |
||
202 | this.SymbolRegenAsync(null); |
||
203 | } |
||
204 | |||
205 | /// <remarks/> |
||
206 | public void SymbolRegenAsync(object userState) { |
||
207 | if ((this.SymbolRegenOperationCompleted == null)) { |
||
208 | this.SymbolRegenOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSymbolRegenOperationCompleted); |
||
209 | } |
||
210 | this.InvokeAsync("SymbolRegen", new object[0], this.SymbolRegenOperationCompleted, userState); |
||
211 | } |
||
212 | |||
213 | private void OnSymbolRegenOperationCompleted(object arg) { |
||
214 | if ((this.SymbolRegenCompleted != null)) { |
||
215 | System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); |
||
216 | this.SymbolRegenCompleted(this, new SymbolRegenCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); |
||
217 | } |
||
218 | } |
||
219 | |||
220 | /// <remarks/> |
||
221 | 787a4489 | KangIngu | public new void CancelAsync(object userState) { |
222 | base.CancelAsync(userState); |
||
223 | } |
||
224 | |||
225 | private bool IsLocalFileSystemWebService(string url) { |
||
226 | if (((url == null) |
||
227 | || (url == string.Empty))) { |
||
228 | return false; |
||
229 | } |
||
230 | System.Uri wsUri = new System.Uri(url); |
||
231 | if (((wsUri.Port >= 1024) |
||
232 | && (string.Compare(wsUri.Host, "localHost", System.StringComparison.OrdinalIgnoreCase) == 0))) { |
||
233 | return true; |
||
234 | } |
||
235 | return false; |
||
236 | } |
||
237 | } |
||
238 | |||
239 | /// <remarks/> |
||
240 | f1f822e9 | taeseongkim | [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9037.0")] |
241 | 787a4489 | KangIngu | public delegate void RunCompletedEventHandler(object sender, RunCompletedEventArgs e); |
242 | |||
243 | /// <remarks/> |
||
244 | f1f822e9 | taeseongkim | [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9037.0")] |
245 | 787a4489 | KangIngu | [System.Diagnostics.DebuggerStepThroughAttribute()] |
246 | [System.ComponentModel.DesignerCategoryAttribute("code")] |
||
247 | public partial class RunCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { |
||
248 | |||
249 | private object[] results; |
||
250 | |||
251 | internal RunCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : |
||
252 | base(exception, cancelled, userState) { |
||
253 | this.results = results; |
||
254 | } |
||
255 | |||
256 | /// <remarks/> |
||
257 | public string Result { |
||
258 | get { |
||
259 | this.RaiseExceptionIfNecessary(); |
||
260 | return ((string)(this.results[0])); |
||
261 | } |
||
262 | } |
||
263 | } |
||
264 | f1f822e9 | taeseongkim | |
265 | /// <remarks/> |
||
266 | [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9037.0")] |
||
267 | public delegate void RunSymbolCompletedEventHandler(object sender, RunSymbolCompletedEventArgs e); |
||
268 | |||
269 | /// <remarks/> |
||
270 | [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9037.0")] |
||
271 | [System.Diagnostics.DebuggerStepThroughAttribute()] |
||
272 | [System.ComponentModel.DesignerCategoryAttribute("code")] |
||
273 | public partial class RunSymbolCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { |
||
274 | |||
275 | private object[] results; |
||
276 | |||
277 | internal RunSymbolCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : |
||
278 | base(exception, cancelled, userState) { |
||
279 | this.results = results; |
||
280 | } |
||
281 | |||
282 | /// <remarks/> |
||
283 | public string Result { |
||
284 | get { |
||
285 | this.RaiseExceptionIfNecessary(); |
||
286 | return ((string)(this.results[0])); |
||
287 | } |
||
288 | } |
||
289 | } |
||
290 | |||
291 | /// <remarks/> |
||
292 | [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9037.0")] |
||
293 | public delegate void ServerMapPathTestCompletedEventHandler(object sender, ServerMapPathTestCompletedEventArgs e); |
||
294 | |||
295 | /// <remarks/> |
||
296 | [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9037.0")] |
||
297 | [System.Diagnostics.DebuggerStepThroughAttribute()] |
||
298 | [System.ComponentModel.DesignerCategoryAttribute("code")] |
||
299 | public partial class ServerMapPathTestCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { |
||
300 | |||
301 | private object[] results; |
||
302 | |||
303 | internal ServerMapPathTestCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : |
||
304 | base(exception, cancelled, userState) { |
||
305 | this.results = results; |
||
306 | } |
||
307 | |||
308 | /// <remarks/> |
||
309 | public string Result { |
||
310 | get { |
||
311 | this.RaiseExceptionIfNecessary(); |
||
312 | return ((string)(this.results[0])); |
||
313 | } |
||
314 | } |
||
315 | } |
||
316 | |||
317 | /// <remarks/> |
||
318 | [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9037.0")] |
||
319 | public delegate void SymbolRegenCompletedEventHandler(object sender, SymbolRegenCompletedEventArgs e); |
||
320 | |||
321 | /// <remarks/> |
||
322 | [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9037.0")] |
||
323 | [System.Diagnostics.DebuggerStepThroughAttribute()] |
||
324 | [System.ComponentModel.DesignerCategoryAttribute("code")] |
||
325 | public partial class SymbolRegenCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { |
||
326 | |||
327 | private object[] results; |
||
328 | |||
329 | internal SymbolRegenCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : |
||
330 | base(exception, cancelled, userState) { |
||
331 | this.results = results; |
||
332 | } |
||
333 | |||
334 | /// <remarks/> |
||
335 | public string Result { |
||
336 | get { |
||
337 | this.RaiseExceptionIfNecessary(); |
||
338 | return ((string)(this.results[0])); |
||
339 | } |
||
340 | } |
||
341 | } |
||
342 | 787a4489 | KangIngu | } |
343 | |||
344 | #pragma warning restore 1591 |