markus / KCOM / Web References / kr.co.devdoftech.cloud / Reference.cs @ 53880c83
이력 | 보기 | 이력해설 | 다운로드 (6.4 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.7.3056.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 bool useDefaultCredentialsSetExplicitly; |
35 |
|
36 |
/// <remarks/> |
37 |
public FileUpload() { |
38 |
this.Url = global::KCOM.Properties.Settings.Default.KCOM_kr_co_devdoftech_cloud_FileUpload; |
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 ProjectNo, string VPNo, string UserID, string FileName, [System.Xml.Serialization.XmlElementAttribute(DataType="base64Binary")] byte[] f) { |
78 |
object[] results = this.Invoke("Run", new object[] { |
79 |
ProjectNo, |
80 |
VPNo, |
81 |
UserID, |
82 |
FileName, |
83 |
f}); |
84 |
return ((string)(results[0])); |
85 |
} |
86 |
|
87 |
/// <remarks/> |
88 |
public void RunAsync(string ProjectNo, string VPNo, string UserID, string FileName, byte[] f) { |
89 |
this.RunAsync(ProjectNo, VPNo, UserID, FileName, f, null); |
90 |
} |
91 |
|
92 |
/// <remarks/> |
93 |
public void RunAsync(string ProjectNo, string VPNo, string UserID, string FileName, byte[] f, object userState) { |
94 |
if ((this.RunOperationCompleted == null)) { |
95 |
this.RunOperationCompleted = new System.Threading.SendOrPostCallback(this.OnRunOperationCompleted); |
96 |
} |
97 |
this.InvokeAsync("Run", new object[] { |
98 |
ProjectNo, |
99 |
VPNo, |
100 |
UserID, |
101 |
FileName, |
102 |
f}, this.RunOperationCompleted, userState); |
103 |
} |
104 |
|
105 |
private void OnRunOperationCompleted(object arg) { |
106 |
if ((this.RunCompleted != null)) { |
107 |
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); |
108 |
this.RunCompleted(this, new RunCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); |
109 |
} |
110 |
} |
111 |
|
112 |
/// <remarks/> |
113 |
public new void CancelAsync(object userState) { |
114 |
base.CancelAsync(userState); |
115 |
} |
116 |
|
117 |
private bool IsLocalFileSystemWebService(string url) { |
118 |
if (((url == null) |
119 |
|| (url == string.Empty))) { |
120 |
return false; |
121 |
} |
122 |
System.Uri wsUri = new System.Uri(url); |
123 |
if (((wsUri.Port >= 1024) |
124 |
&& (string.Compare(wsUri.Host, "localHost", System.StringComparison.OrdinalIgnoreCase) == 0))) { |
125 |
return true; |
126 |
} |
127 |
return false; |
128 |
} |
129 |
} |
130 |
|
131 |
/// <remarks/> |
132 |
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.7.3056.0")] |
133 |
public delegate void RunCompletedEventHandler(object sender, RunCompletedEventArgs e); |
134 |
|
135 |
/// <remarks/> |
136 |
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.7.3056.0")] |
137 |
[System.Diagnostics.DebuggerStepThroughAttribute()] |
138 |
[System.ComponentModel.DesignerCategoryAttribute("code")] |
139 |
public partial class RunCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { |
140 |
|
141 |
private object[] results; |
142 |
|
143 |
internal RunCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : |
144 |
base(exception, cancelled, userState) { |
145 |
this.results = results; |
146 |
} |
147 |
|
148 |
/// <remarks/> |
149 |
public string Result { |
150 |
get { |
151 |
this.RaiseExceptionIfNecessary(); |
152 |
return ((string)(this.results[0])); |
153 |
} |
154 |
} |
155 |
} |
156 |
} |
157 |
|
158 |
#pragma warning restore 1591 |