Client/Desktop/KMBIM3.0/KMBIM3.0_소스/Web References/kr.co.dcs.newlicense1/Reference.cs

151 lines
6.1 KiB
C#

//------------------------------------------------------------------------------
// <auto-generated>
// 이 코드는 도구를 사용하여 생성되었습니다.
// 런타임 버전:4.0.30319.42000
//
// 파일 내용을 변경하면 잘못된 동작이 발생할 수 있으며, 코드를 다시 생성하면
// 이러한 변경 내용이 손실됩니다.
// </auto-generated>
//------------------------------------------------------------------------------
//
// 이 소스 코드가 Microsoft.VSDesigner, 버전 4.0.30319.42000에서 자동으로 생성되었습니다.
//
#pragma warning disable 1591
namespace KMBIM.Revit.Tools.kr.co.dcs.newlicense1 {
using System;
using System.Web.Services;
using System.Diagnostics;
using System.Web.Services.Protocols;
using System.Xml.Serialization;
using System.ComponentModel;
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.4084.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Web.Services.WebServiceBindingAttribute(Name="DCS_License_WebServiceBinding", Namespace="http://newlicense.dcs.co.kr/soap/DCS_License_WebService")]
public partial class DCS_License_WebService : System.Web.Services.Protocols.SoapHttpClientProtocol {
private System.Threading.SendOrPostCallback RequestBaseOperationCompleted;
private bool useDefaultCredentialsSetExplicitly;
/// <remarks/>
public DCS_License_WebService() {
this.Url = global::KMBIM.Revit.Tools.Properties.Settings.Default.KMBIM2020_kr_co_dcs_newlicense1_DCS_License_WebService;
if ((this.IsLocalFileSystemWebService(this.Url) == true)) {
this.UseDefaultCredentials = true;
this.useDefaultCredentialsSetExplicitly = false;
}
else {
this.useDefaultCredentialsSetExplicitly = true;
}
}
public new string Url {
get {
return base.Url;
}
set {
if ((((this.IsLocalFileSystemWebService(base.Url) == true)
&& (this.useDefaultCredentialsSetExplicitly == false))
&& (this.IsLocalFileSystemWebService(value) == false))) {
base.UseDefaultCredentials = false;
}
base.Url = value;
}
}
public new bool UseDefaultCredentials {
get {
return base.UseDefaultCredentials;
}
set {
base.UseDefaultCredentials = value;
this.useDefaultCredentialsSetExplicitly = true;
}
}
/// <remarks/>
public event RequestBaseCompletedEventHandler RequestBaseCompleted;
/// <remarks/>
[System.Web.Services.Protocols.SoapRpcMethodAttribute("http://newlicense.dcs.co.kr/main.php/RequestBase", RequestNamespace="", ResponseNamespace="")]
[return: System.Xml.Serialization.SoapElementAttribute("return")]
public string RequestBase(string encodingstring) {
object[] results = this.Invoke("RequestBase", new object[] {
encodingstring});
return ((string)(results[0]));
}
/// <remarks/>
public void RequestBaseAsync(string encodingstring) {
this.RequestBaseAsync(encodingstring, null);
}
/// <remarks/>
public void RequestBaseAsync(string encodingstring, object userState) {
if ((this.RequestBaseOperationCompleted == null)) {
this.RequestBaseOperationCompleted = new System.Threading.SendOrPostCallback(this.OnRequestBaseOperationCompleted);
}
this.InvokeAsync("RequestBase", new object[] {
encodingstring}, this.RequestBaseOperationCompleted, userState);
}
private void OnRequestBaseOperationCompleted(object arg) {
if ((this.RequestBaseCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.RequestBaseCompleted(this, new RequestBaseCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
public new void CancelAsync(object userState) {
base.CancelAsync(userState);
}
private bool IsLocalFileSystemWebService(string url) {
if (((url == null)
|| (url == string.Empty))) {
return false;
}
System.Uri wsUri = new System.Uri(url);
if (((wsUri.Port >= 1024)
&& (string.Compare(wsUri.Host, "localHost", System.StringComparison.OrdinalIgnoreCase) == 0))) {
return true;
}
return false;
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.4084.0")]
public delegate void RequestBaseCompletedEventHandler(object sender, RequestBaseCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.4084.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class RequestBaseCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal RequestBaseCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public string Result {
get {
this.RaiseExceptionIfNecessary();
return ((string)(this.results[0]));
}
}
}
}
#pragma warning restore 1591