|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
|
// <auto-generated>
|
|
|
|
|
// 此代码由工具生成。
|
|
|
|
|
//
|
|
|
|
|
// 对此文件的更改可能导致不正确的行为,并在以下条件下丢失:
|
|
|
|
|
// 代码重新生成。
|
|
|
|
|
// </auto-generated>
|
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
namespace ServiceReferenceLed
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")]
|
|
|
|
|
[System.ServiceModel.ServiceContractAttribute(ConfigurationName="ServiceReferenceLed.WebServiceLedSoap")]
|
|
|
|
|
public interface WebServiceLedSoap
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/LedConnect", ReplyAction="*")]
|
|
|
|
|
System.Threading.Tasks.Task LedConnectAsync();
|
|
|
|
|
|
|
|
|
|
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/LedDisConnect", ReplyAction="*")]
|
|
|
|
|
System.Threading.Tasks.Task LedDisConnectAsync();
|
|
|
|
|
|
|
|
|
|
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/GetLedConnectedSts", ReplyAction="*")]
|
|
|
|
|
System.Threading.Tasks.Task<bool> GetLedConnectedStsAsync();
|
|
|
|
|
|
|
|
|
|
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/WriteWelcome", ReplyAction="*")]
|
|
|
|
|
System.Threading.Tasks.Task<ServiceReferenceLed.WriteWelcomeResponse> WriteWelcomeAsync(ServiceReferenceLed.WriteWelcomeRequest request);
|
|
|
|
|
|
|
|
|
|
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/WriteContent", ReplyAction="*")]
|
|
|
|
|
System.Threading.Tasks.Task<ServiceReferenceLed.WriteContentResponse> WriteContentAsync(ServiceReferenceLed.WriteContentRequest request);
|
|
|
|
|
|
|
|
|
|
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/WriteProgramContent", ReplyAction="*")]
|
|
|
|
|
System.Threading.Tasks.Task<ServiceReferenceLed.WriteProgramContentResponse> WriteProgramContentAsync(ServiceReferenceLed.WriteProgramContentRequest request);
|
|
|
|
|
|
|
|
|
|
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/WriteProgramWelcome", ReplyAction="*")]
|
|
|
|
|
System.Threading.Tasks.Task<ServiceReferenceLed.WriteProgramWelcomeResponse> WriteProgramWelcomeAsync(ServiceReferenceLed.WriteProgramWelcomeRequest request);
|
|
|
|
|
|
|
|
|
|
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/WriteClearScreen", ReplyAction="*")]
|
|
|
|
|
System.Threading.Tasks.Task WriteClearScreenAsync();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
|
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")]
|
|
|
|
|
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
|
|
|
|
[System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
|
|
|
|
|
public partial class WriteWelcomeRequest
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
[System.ServiceModel.MessageBodyMemberAttribute(Name="WriteWelcome", Namespace="http://tempuri.org/", Order=0)]
|
|
|
|
|
public ServiceReferenceLed.WriteWelcomeRequestBody Body;
|
|
|
|
|
|
|
|
|
|
public WriteWelcomeRequest()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public WriteWelcomeRequest(ServiceReferenceLed.WriteWelcomeRequestBody Body)
|
|
|
|
|
{
|
|
|
|
|
this.Body = Body;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
|
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")]
|
|
|
|
|
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
|
|
|
|
[System.Runtime.Serialization.DataContractAttribute(Namespace="http://tempuri.org/")]
|
|
|
|
|
public partial class WriteWelcomeRequestBody
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)]
|
|
|
|
|
public string str_cn;
|
|
|
|
|
|
|
|
|
|
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=1)]
|
|
|
|
|
public string str_cn1;
|
|
|
|
|
|
|
|
|
|
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=2)]
|
|
|
|
|
public string str_cn2;
|
|
|
|
|
|
|
|
|
|
public WriteWelcomeRequestBody()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public WriteWelcomeRequestBody(string str_cn, string str_cn1, string str_cn2)
|
|
|
|
|
{
|
|
|
|
|
this.str_cn = str_cn;
|
|
|
|
|
this.str_cn1 = str_cn1;
|
|
|
|
|
this.str_cn2 = str_cn2;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
|
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")]
|
|
|
|
|
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
|
|
|
|
[System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
|
|
|
|
|
public partial class WriteWelcomeResponse
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
[System.ServiceModel.MessageBodyMemberAttribute(Name="WriteWelcomeResponse", Namespace="http://tempuri.org/", Order=0)]
|
|
|
|
|
public ServiceReferenceLed.WriteWelcomeResponseBody Body;
|
|
|
|
|
|
|
|
|
|
public WriteWelcomeResponse()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public WriteWelcomeResponse(ServiceReferenceLed.WriteWelcomeResponseBody Body)
|
|
|
|
|
{
|
|
|
|
|
this.Body = Body;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
|
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")]
|
|
|
|
|
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
|
|
|
|
[System.Runtime.Serialization.DataContractAttribute()]
|
|
|
|
|
public partial class WriteWelcomeResponseBody
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public WriteWelcomeResponseBody()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
|
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")]
|
|
|
|
|
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
|
|
|
|
[System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
|
|
|
|
|
public partial class WriteContentRequest
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
[System.ServiceModel.MessageBodyMemberAttribute(Name="WriteContent", Namespace="http://tempuri.org/", Order=0)]
|
|
|
|
|
public ServiceReferenceLed.WriteContentRequestBody Body;
|
|
|
|
|
|
|
|
|
|
public WriteContentRequest()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public WriteContentRequest(ServiceReferenceLed.WriteContentRequestBody Body)
|
|
|
|
|
{
|
|
|
|
|
this.Body = Body;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
|
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")]
|
|
|
|
|
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
|
|
|
|
[System.Runtime.Serialization.DataContractAttribute(Namespace="http://tempuri.org/")]
|
|
|
|
|
public partial class WriteContentRequestBody
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)]
|
|
|
|
|
public string content;
|
|
|
|
|
|
|
|
|
|
public WriteContentRequestBody()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public WriteContentRequestBody(string content)
|
|
|
|
|
{
|
|
|
|
|
this.content = content;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
|
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")]
|
|
|
|
|
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
|
|
|
|
[System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
|
|
|
|
|
public partial class WriteContentResponse
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
[System.ServiceModel.MessageBodyMemberAttribute(Name="WriteContentResponse", Namespace="http://tempuri.org/", Order=0)]
|
|
|
|
|
public ServiceReferenceLed.WriteContentResponseBody Body;
|
|
|
|
|
|
|
|
|
|
public WriteContentResponse()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public WriteContentResponse(ServiceReferenceLed.WriteContentResponseBody Body)
|
|
|
|
|
{
|
|
|
|
|
this.Body = Body;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
|
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")]
|
|
|
|
|
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
|
|
|
|
[System.Runtime.Serialization.DataContractAttribute()]
|
|
|
|
|
public partial class WriteContentResponseBody
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public WriteContentResponseBody()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
|
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")]
|
|
|
|
|
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
|
|
|
|
[System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
|
|
|
|
|
public partial class WriteProgramContentRequest
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
[System.ServiceModel.MessageBodyMemberAttribute(Name="WriteProgramContent", Namespace="http://tempuri.org/", Order=0)]
|
|
|
|
|
public ServiceReferenceLed.WriteProgramContentRequestBody Body;
|
|
|
|
|
|
|
|
|
|
public WriteProgramContentRequest()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public WriteProgramContentRequest(ServiceReferenceLed.WriteProgramContentRequestBody Body)
|
|
|
|
|
{
|
|
|
|
|
this.Body = Body;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
|
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")]
|
|
|
|
|
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
|
|
|
|
[System.Runtime.Serialization.DataContractAttribute(Namespace="http://tempuri.org/")]
|
|
|
|
|
public partial class WriteProgramContentRequestBody
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)]
|
|
|
|
|
public string content;
|
|
|
|
|
|
|
|
|
|
public WriteProgramContentRequestBody()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public WriteProgramContentRequestBody(string content)
|
|
|
|
|
{
|
|
|
|
|
this.content = content;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
|
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")]
|
|
|
|
|
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
|
|
|
|
[System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
|
|
|
|
|
public partial class WriteProgramContentResponse
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
[System.ServiceModel.MessageBodyMemberAttribute(Name="WriteProgramContentResponse", Namespace="http://tempuri.org/", Order=0)]
|
|
|
|
|
public ServiceReferenceLed.WriteProgramContentResponseBody Body;
|
|
|
|
|
|
|
|
|
|
public WriteProgramContentResponse()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public WriteProgramContentResponse(ServiceReferenceLed.WriteProgramContentResponseBody Body)
|
|
|
|
|
{
|
|
|
|
|
this.Body = Body;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
|
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")]
|
|
|
|
|
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
|
|
|
|
[System.Runtime.Serialization.DataContractAttribute()]
|
|
|
|
|
public partial class WriteProgramContentResponseBody
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public WriteProgramContentResponseBody()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
|
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")]
|
|
|
|
|
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
|
|
|
|
[System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
|
|
|
|
|
public partial class WriteProgramWelcomeRequest
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
[System.ServiceModel.MessageBodyMemberAttribute(Name="WriteProgramWelcome", Namespace="http://tempuri.org/", Order=0)]
|
|
|
|
|
public ServiceReferenceLed.WriteProgramWelcomeRequestBody Body;
|
|
|
|
|
|
|
|
|
|
public WriteProgramWelcomeRequest()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public WriteProgramWelcomeRequest(ServiceReferenceLed.WriteProgramWelcomeRequestBody Body)
|
|
|
|
|
{
|
|
|
|
|
this.Body = Body;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
|
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")]
|
|
|
|
|
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
|
|
|
|
[System.Runtime.Serialization.DataContractAttribute(Namespace="http://tempuri.org/")]
|
|
|
|
|
public partial class WriteProgramWelcomeRequestBody
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)]
|
|
|
|
|
public string str_cn;
|
|
|
|
|
|
|
|
|
|
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=1)]
|
|
|
|
|
public string str_cn1;
|
|
|
|
|
|
|
|
|
|
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=2)]
|
|
|
|
|
public string str_cn2;
|
|
|
|
|
|
|
|
|
|
public WriteProgramWelcomeRequestBody()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public WriteProgramWelcomeRequestBody(string str_cn, string str_cn1, string str_cn2)
|
|
|
|
|
{
|
|
|
|
|
this.str_cn = str_cn;
|
|
|
|
|
this.str_cn1 = str_cn1;
|
|
|
|
|
this.str_cn2 = str_cn2;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
|
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")]
|
|
|
|
|
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
|
|
|
|
[System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
|
|
|
|
|
public partial class WriteProgramWelcomeResponse
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
[System.ServiceModel.MessageBodyMemberAttribute(Name="WriteProgramWelcomeResponse", Namespace="http://tempuri.org/", Order=0)]
|
|
|
|
|
public ServiceReferenceLed.WriteProgramWelcomeResponseBody Body;
|
|
|
|
|
|
|
|
|
|
public WriteProgramWelcomeResponse()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public WriteProgramWelcomeResponse(ServiceReferenceLed.WriteProgramWelcomeResponseBody Body)
|
|
|
|
|
{
|
|
|
|
|
this.Body = Body;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
|
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")]
|
|
|
|
|
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
|
|
|
|
[System.Runtime.Serialization.DataContractAttribute()]
|
|
|
|
|
public partial class WriteProgramWelcomeResponseBody
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public WriteProgramWelcomeResponseBody()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")]
|
|
|
|
|
public interface WebServiceLedSoapChannel : ServiceReferenceLed.WebServiceLedSoap, System.ServiceModel.IClientChannel
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
|
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")]
|
|
|
|
|
public partial class WebServiceLedSoapClient : System.ServiceModel.ClientBase<ServiceReferenceLed.WebServiceLedSoap>, ServiceReferenceLed.WebServiceLedSoap
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 实现此分部方法,配置服务终结点。
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="serviceEndpoint">要配置的终结点</param>
|
|
|
|
|
/// <param name="clientCredentials">客户端凭据</param>
|
|
|
|
|
static partial void ConfigureEndpoint(System.ServiceModel.Description.ServiceEndpoint serviceEndpoint, System.ServiceModel.Description.ClientCredentials clientCredentials);
|
|
|
|
|
|
|
|
|
|
public WebServiceLedSoapClient(EndpointConfiguration endpointConfiguration) :
|
|
|
|
|
base(WebServiceLedSoapClient.GetBindingForEndpoint(endpointConfiguration), WebServiceLedSoapClient.GetEndpointAddress(endpointConfiguration))
|
|
|
|
|
{
|
|
|
|
|
this.Endpoint.Name = endpointConfiguration.ToString();
|
|
|
|
|
ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public WebServiceLedSoapClient(EndpointConfiguration endpointConfiguration, string remoteAddress) :
|
|
|
|
|
base(WebServiceLedSoapClient.GetBindingForEndpoint(endpointConfiguration), new System.ServiceModel.EndpointAddress(remoteAddress))
|
|
|
|
|
{
|
|
|
|
|
this.Endpoint.Name = endpointConfiguration.ToString();
|
|
|
|
|
ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public WebServiceLedSoapClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) :
|
|
|
|
|
base(WebServiceLedSoapClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress)
|
|
|
|
|
{
|
|
|
|
|
this.Endpoint.Name = endpointConfiguration.ToString();
|
|
|
|
|
ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public WebServiceLedSoapClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) :
|
|
|
|
|
base(binding, remoteAddress)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public System.Threading.Tasks.Task LedConnectAsync()
|
|
|
|
|
{
|
|
|
|
|
return base.Channel.LedConnectAsync();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public System.Threading.Tasks.Task LedDisConnectAsync()
|
|
|
|
|
{
|
|
|
|
|
return base.Channel.LedDisConnectAsync();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public System.Threading.Tasks.Task<bool> GetLedConnectedStsAsync()
|
|
|
|
|
{
|
|
|
|
|
return base.Channel.GetLedConnectedStsAsync();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
|
|
|
|
System.Threading.Tasks.Task<ServiceReferenceLed.WriteWelcomeResponse> ServiceReferenceLed.WebServiceLedSoap.WriteWelcomeAsync(ServiceReferenceLed.WriteWelcomeRequest request)
|
|
|
|
|
{
|
|
|
|
|
return base.Channel.WriteWelcomeAsync(request);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public System.Threading.Tasks.Task<ServiceReferenceLed.WriteWelcomeResponse> WriteWelcomeAsync(string str_cn, string str_cn1, string str_cn2)
|
|
|
|
|
{
|
|
|
|
|
ServiceReferenceLed.WriteWelcomeRequest inValue = new ServiceReferenceLed.WriteWelcomeRequest();
|
|
|
|
|
inValue.Body = new ServiceReferenceLed.WriteWelcomeRequestBody();
|
|
|
|
|
inValue.Body.str_cn = str_cn;
|
|
|
|
|
inValue.Body.str_cn1 = str_cn1;
|
|
|
|
|
inValue.Body.str_cn2 = str_cn2;
|
|
|
|
|
return ((ServiceReferenceLed.WebServiceLedSoap)(this)).WriteWelcomeAsync(inValue);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
|
|
|
|
System.Threading.Tasks.Task<ServiceReferenceLed.WriteContentResponse> ServiceReferenceLed.WebServiceLedSoap.WriteContentAsync(ServiceReferenceLed.WriteContentRequest request)
|
|
|
|
|
{
|
|
|
|
|
return base.Channel.WriteContentAsync(request);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public System.Threading.Tasks.Task<ServiceReferenceLed.WriteContentResponse> WriteContentAsync(string content)
|
|
|
|
|
{
|
|
|
|
|
ServiceReferenceLed.WriteContentRequest inValue = new ServiceReferenceLed.WriteContentRequest();
|
|
|
|
|
inValue.Body = new ServiceReferenceLed.WriteContentRequestBody();
|
|
|
|
|
inValue.Body.content = content;
|
|
|
|
|
return ((ServiceReferenceLed.WebServiceLedSoap)(this)).WriteContentAsync(inValue);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
|
|
|
|
System.Threading.Tasks.Task<ServiceReferenceLed.WriteProgramContentResponse> ServiceReferenceLed.WebServiceLedSoap.WriteProgramContentAsync(ServiceReferenceLed.WriteProgramContentRequest request)
|
|
|
|
|
{
|
|
|
|
|
return base.Channel.WriteProgramContentAsync(request);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public System.Threading.Tasks.Task<ServiceReferenceLed.WriteProgramContentResponse> WriteProgramContentAsync(string content)
|
|
|
|
|
{
|
|
|
|
|
ServiceReferenceLed.WriteProgramContentRequest inValue = new ServiceReferenceLed.WriteProgramContentRequest();
|
|
|
|
|
inValue.Body = new ServiceReferenceLed.WriteProgramContentRequestBody();
|
|
|
|
|
inValue.Body.content = content;
|
|
|
|
|
return ((ServiceReferenceLed.WebServiceLedSoap)(this)).WriteProgramContentAsync(inValue);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
|
|
|
|
System.Threading.Tasks.Task<ServiceReferenceLed.WriteProgramWelcomeResponse> ServiceReferenceLed.WebServiceLedSoap.WriteProgramWelcomeAsync(ServiceReferenceLed.WriteProgramWelcomeRequest request)
|
|
|
|
|
{
|
|
|
|
|
return base.Channel.WriteProgramWelcomeAsync(request);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public System.Threading.Tasks.Task<ServiceReferenceLed.WriteProgramWelcomeResponse> WriteProgramWelcomeAsync(string str_cn, string str_cn1, string str_cn2)
|
|
|
|
|
{
|
|
|
|
|
ServiceReferenceLed.WriteProgramWelcomeRequest inValue = new ServiceReferenceLed.WriteProgramWelcomeRequest();
|
|
|
|
|
inValue.Body = new ServiceReferenceLed.WriteProgramWelcomeRequestBody();
|
|
|
|
|
inValue.Body.str_cn = str_cn;
|
|
|
|
|
inValue.Body.str_cn1 = str_cn1;
|
|
|
|
|
inValue.Body.str_cn2 = str_cn2;
|
|
|
|
|
return ((ServiceReferenceLed.WebServiceLedSoap)(this)).WriteProgramWelcomeAsync(inValue);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public System.Threading.Tasks.Task WriteClearScreenAsync()
|
|
|
|
|
{
|
|
|
|
|
return base.Channel.WriteClearScreenAsync();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public virtual System.Threading.Tasks.Task OpenAsync()
|
|
|
|
|
{
|
|
|
|
|
return System.Threading.Tasks.Task.Factory.FromAsync(((System.ServiceModel.ICommunicationObject)(this)).BeginOpen(null, null), new System.Action<System.IAsyncResult>(((System.ServiceModel.ICommunicationObject)(this)).EndOpen));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public virtual System.Threading.Tasks.Task CloseAsync()
|
|
|
|
|
{
|
|
|
|
|
return System.Threading.Tasks.Task.Factory.FromAsync(((System.ServiceModel.ICommunicationObject)(this)).BeginClose(null, null), new System.Action<System.IAsyncResult>(((System.ServiceModel.ICommunicationObject)(this)).EndClose));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private static System.ServiceModel.Channels.Binding GetBindingForEndpoint(EndpointConfiguration endpointConfiguration)
|
|
|
|
|
{
|
|
|
|
|
if ((endpointConfiguration == EndpointConfiguration.WebServiceLedSoap))
|
|
|
|
|
{
|
|
|
|
|
System.ServiceModel.BasicHttpBinding result = new System.ServiceModel.BasicHttpBinding();
|
|
|
|
|
result.MaxBufferSize = int.MaxValue;
|
|
|
|
|
result.ReaderQuotas = System.Xml.XmlDictionaryReaderQuotas.Max;
|
|
|
|
|
result.MaxReceivedMessageSize = int.MaxValue;
|
|
|
|
|
result.AllowCookies = true;
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
if ((endpointConfiguration == EndpointConfiguration.WebServiceLedSoap12))
|
|
|
|
|
{
|
|
|
|
|
System.ServiceModel.Channels.CustomBinding result = new System.ServiceModel.Channels.CustomBinding();
|
|
|
|
|
System.ServiceModel.Channels.TextMessageEncodingBindingElement textBindingElement = new System.ServiceModel.Channels.TextMessageEncodingBindingElement();
|
|
|
|
|
textBindingElement.MessageVersion = System.ServiceModel.Channels.MessageVersion.CreateVersion(System.ServiceModel.EnvelopeVersion.Soap12, System.ServiceModel.Channels.AddressingVersion.None);
|
|
|
|
|
result.Elements.Add(textBindingElement);
|
|
|
|
|
System.ServiceModel.Channels.HttpTransportBindingElement httpBindingElement = new System.ServiceModel.Channels.HttpTransportBindingElement();
|
|
|
|
|
httpBindingElement.AllowCookies = true;
|
|
|
|
|
httpBindingElement.MaxBufferSize = int.MaxValue;
|
|
|
|
|
httpBindingElement.MaxReceivedMessageSize = int.MaxValue;
|
|
|
|
|
result.Elements.Add(httpBindingElement);
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
throw new System.InvalidOperationException(string.Format("找不到名称为“{0}”的终结点。", endpointConfiguration));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private static System.ServiceModel.EndpointAddress GetEndpointAddress(EndpointConfiguration endpointConfiguration)
|
|
|
|
|
{
|
|
|
|
|
if ((endpointConfiguration == EndpointConfiguration.WebServiceLedSoap))
|
|
|
|
|
{
|
|
|
|
|
return new System.ServiceModel.EndpointAddress("http://127.0.0.1:8081/WebServiceLed.asmx");
|
|
|
|
|
}
|
|
|
|
|
if ((endpointConfiguration == EndpointConfiguration.WebServiceLedSoap12))
|
|
|
|
|
{
|
|
|
|
|
return new System.ServiceModel.EndpointAddress("http://127.0.0.1:8081/WebServiceLed.asmx");
|
|
|
|
|
}
|
|
|
|
|
throw new System.InvalidOperationException(string.Format("找不到名称为“{0}”的终结点。", endpointConfiguration));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum EndpointConfiguration
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
WebServiceLedSoap,
|
|
|
|
|
|
|
|
|
|
WebServiceLedSoap12,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|