//------------------------------------------------------------------------------ // // 此代码由工具生成。 // // 对此文件的更改可能导致不正确的行为,并在以下条件下丢失: // 代码重新生成。 // //------------------------------------------------------------------------------ namespace EC.Helper.Onvif.Discovery; [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] [System.ServiceModel.ServiceContractAttribute(Namespace="http://www.onvif.org/ver10/network/wsdl", ConfigurationName= "EC.Onvif.Discovery.RemoteDiscoveryPort")] public interface RemoteDiscoveryPort { [System.ServiceModel.OperationContractAttribute(Action="http://www.onvif.org/ver10/network/wsdl/Hello", ReplyAction="*")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)] HelloResponse Hello(HelloRequest request); [System.ServiceModel.OperationContractAttribute(Action="http://www.onvif.org/ver10/network/wsdl/Hello", ReplyAction="*")] System.Threading.Tasks.Task HelloAsync(HelloRequest request); [System.ServiceModel.OperationContractAttribute(Action="http://www.onvif.org/ver10/network/wsdl/Bye", ReplyAction="*")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)] ByeResponse Bye(ByeRequest request); [System.ServiceModel.OperationContractAttribute(Action="http://www.onvif.org/ver10/network/wsdl/Bye", ReplyAction="*")] System.Threading.Tasks.Task ByeAsync(ByeRequest request); } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing")] public partial class EndpointReferenceType { private AttributedURI addressField; private ReferencePropertiesType referencePropertiesField; private ReferenceParametersType referenceParametersField; private AttributedQName portTypeField; private ServiceNameType serviceNameField; private System.Xml.XmlElement[] anyField; /// [System.Xml.Serialization.XmlElementAttribute(Order=0)] public AttributedURI Address { get { return this.addressField; } set { this.addressField = value; } } /// [System.Xml.Serialization.XmlElementAttribute(Order=1)] public ReferencePropertiesType ReferenceProperties { get { return this.referencePropertiesField; } set { this.referencePropertiesField = value; } } /// [System.Xml.Serialization.XmlElementAttribute(Order=2)] public ReferenceParametersType ReferenceParameters { get { return this.referenceParametersField; } set { this.referenceParametersField = value; } } /// [System.Xml.Serialization.XmlElementAttribute(Order=3)] public AttributedQName PortType { get { return this.portTypeField; } set { this.portTypeField = value; } } /// [System.Xml.Serialization.XmlElementAttribute(Order=4)] public ServiceNameType ServiceName { get { return this.serviceNameField; } set { this.serviceNameField = value; } } /// [System.Xml.Serialization.XmlAnyElementAttribute(Order=5)] public System.Xml.XmlElement[] Any { get { return this.anyField; } set { this.anyField = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing")] public partial class AttributedURI { private string valueField; /// [System.Xml.Serialization.XmlTextAttribute(DataType="anyURI")] public string Value { get { return this.valueField; } set { this.valueField = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.xmlsoap.org/ws/2005/04/discovery")] public partial class ProbeMatchType { private EndpointReferenceType endpointReferenceField; private string typesField; private ScopesType scopesField; private string xAddrsField; private uint metadataVersionField; private System.Xml.XmlElement[] anyField; /// [System.Xml.Serialization.XmlElementAttribute(Namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing", Order=0)] public EndpointReferenceType EndpointReference { get { return this.endpointReferenceField; } set { this.endpointReferenceField = value; } } /// [System.Xml.Serialization.XmlElementAttribute(Order=1)] public string Types { get { return this.typesField; } set { this.typesField = value; } } /// [System.Xml.Serialization.XmlElementAttribute(Order=2)] public ScopesType Scopes { get { return this.scopesField; } set { this.scopesField = value; } } /// [System.Xml.Serialization.XmlElementAttribute(Order=3)] public string XAddrs { get { return this.xAddrsField; } set { this.xAddrsField = value; } } /// [System.Xml.Serialization.XmlElementAttribute(Order=4)] public uint MetadataVersion { get { return this.metadataVersionField; } set { this.metadataVersionField = value; } } /// [System.Xml.Serialization.XmlAnyElementAttribute(Order=5)] public System.Xml.XmlElement[] Any { get { return this.anyField; } set { this.anyField = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.xmlsoap.org/ws/2005/04/discovery")] public partial class ScopesType { private string matchByField; private string[] textField; /// [System.Xml.Serialization.XmlAttributeAttribute(DataType="anyURI")] public string MatchBy { get { return this.matchByField; } set { this.matchByField = value; } } /// [System.Xml.Serialization.XmlTextAttribute(DataType="anyURI")] public string[] Text { get { return this.textField; } set { this.textField = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing")] public partial class ServiceNameType { private string portNameField; private System.Xml.XmlQualifiedName valueField; /// [System.Xml.Serialization.XmlAttributeAttribute(DataType="NCName")] public string PortName { get { return this.portNameField; } set { this.portNameField = value; } } /// [System.Xml.Serialization.XmlTextAttribute()] public System.Xml.XmlQualifiedName Value { get { return this.valueField; } set { this.valueField = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing")] public partial class AttributedQName { private System.Xml.XmlQualifiedName valueField; /// [System.Xml.Serialization.XmlTextAttribute()] public System.Xml.XmlQualifiedName Value { get { return this.valueField; } set { this.valueField = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing")] public partial class ReferenceParametersType { private System.Xml.XmlElement[] anyField; /// [System.Xml.Serialization.XmlAnyElementAttribute(Order=0)] public System.Xml.XmlElement[] Any { get { return this.anyField; } set { this.anyField = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing")] public partial class ReferencePropertiesType { private System.Xml.XmlElement[] anyField; /// [System.Xml.Serialization.XmlAnyElementAttribute(Order=0)] public System.Xml.XmlElement[] Any { get { return this.anyField; } set { this.anyField = value; } } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] [System.ServiceModel.MessageContractAttribute(WrapperName="Hello", WrapperNamespace="http://www.onvif.org/ver10/network/wsdl", IsWrapped=true)] public partial class HelloRequest { [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing", Order=0)] [System.Xml.Serialization.XmlElementAttribute(Namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing")] public EndpointReferenceType EndpointReference; [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://schemas.xmlsoap.org/ws/2005/04/discovery", Order=1)] [System.Xml.Serialization.XmlElementAttribute(Namespace="http://schemas.xmlsoap.org/ws/2005/04/discovery")] public string Types; [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://schemas.xmlsoap.org/ws/2005/04/discovery", Order=2)] [System.Xml.Serialization.XmlElementAttribute(Namespace="http://schemas.xmlsoap.org/ws/2005/04/discovery")] public ScopesType Scopes; [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://schemas.xmlsoap.org/ws/2005/04/discovery", Order=3)] [System.Xml.Serialization.XmlElementAttribute(Namespace="http://schemas.xmlsoap.org/ws/2005/04/discovery")] public string XAddrs; [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://schemas.xmlsoap.org/ws/2005/04/discovery", Order=4)] [System.Xml.Serialization.XmlElementAttribute(Namespace="http://schemas.xmlsoap.org/ws/2005/04/discovery")] public uint MetadataVersion; [System.ServiceModel.MessageBodyMemberAttribute(Namespace="", Order=5)] [System.Xml.Serialization.XmlAnyElementAttribute()] public System.Xml.XmlElement[] Any; public System.Xml.XmlAttribute[] AnyAttr; public HelloRequest() { } public HelloRequest(EndpointReferenceType EndpointReference, string Types, ScopesType Scopes, string XAddrs, uint MetadataVersion, System.Xml.XmlElement[] Any, System.Xml.XmlAttribute[] AnyAttr) { this.EndpointReference = EndpointReference; this.Types = Types; this.Scopes = Scopes; this.XAddrs = XAddrs; this.MetadataVersion = MetadataVersion; this.Any = Any; this.AnyAttr = AnyAttr; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] [System.ServiceModel.MessageContractAttribute(WrapperName="HelloResponse", WrapperNamespace="http://www.onvif.org/ver10/network/wsdl", IsWrapped=true)] public partial class HelloResponse { [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing", Order=0)] [System.Xml.Serialization.XmlElementAttribute(Namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing")] public EndpointReferenceType EndpointReference; [System.ServiceModel.MessageBodyMemberAttribute(Namespace="", Order=1)] [System.Xml.Serialization.XmlAnyElementAttribute()] public System.Xml.XmlElement[] Any; public System.Xml.XmlAttribute[] AnyAttr; public HelloResponse() { } public HelloResponse(EndpointReferenceType EndpointReference, System.Xml.XmlElement[] Any, System.Xml.XmlAttribute[] AnyAttr) { this.EndpointReference = EndpointReference; this.Any = Any; this.AnyAttr = AnyAttr; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] [System.ServiceModel.MessageContractAttribute(WrapperName="Bye", WrapperNamespace="http://www.onvif.org/ver10/network/wsdl", IsWrapped=true)] public partial class ByeRequest { [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing", Order=0)] [System.Xml.Serialization.XmlElementAttribute(Namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing")] public EndpointReferenceType EndpointReference; [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://schemas.xmlsoap.org/ws/2005/04/discovery", Order=1)] [System.Xml.Serialization.XmlElementAttribute(Namespace="http://schemas.xmlsoap.org/ws/2005/04/discovery")] public string Types; [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://schemas.xmlsoap.org/ws/2005/04/discovery", Order=2)] [System.Xml.Serialization.XmlElementAttribute(Namespace="http://schemas.xmlsoap.org/ws/2005/04/discovery")] public ScopesType Scopes; [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://schemas.xmlsoap.org/ws/2005/04/discovery", Order=3)] [System.Xml.Serialization.XmlElementAttribute(Namespace="http://schemas.xmlsoap.org/ws/2005/04/discovery")] public string XAddrs; [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://schemas.xmlsoap.org/ws/2005/04/discovery", Order=4)] [System.Xml.Serialization.XmlElementAttribute(Namespace="http://schemas.xmlsoap.org/ws/2005/04/discovery")] public uint MetadataVersion; [System.ServiceModel.MessageBodyMemberAttribute(Namespace="", Order=5)] [System.Xml.Serialization.XmlAnyElementAttribute()] public System.Xml.XmlElement[] Any; public System.Xml.XmlAttribute[] AnyAttr; public ByeRequest() { } public ByeRequest(EndpointReferenceType EndpointReference, string Types, ScopesType Scopes, string XAddrs, uint MetadataVersion, System.Xml.XmlElement[] Any, System.Xml.XmlAttribute[] AnyAttr) { this.EndpointReference = EndpointReference; this.Types = Types; this.Scopes = Scopes; this.XAddrs = XAddrs; this.MetadataVersion = MetadataVersion; this.Any = Any; this.AnyAttr = AnyAttr; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] [System.ServiceModel.MessageContractAttribute(WrapperName="ByeResponse", WrapperNamespace="http://www.onvif.org/ver10/network/wsdl", IsWrapped=true)] public partial class ByeResponse { [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing", Order=0)] [System.Xml.Serialization.XmlElementAttribute(Namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing")] public EndpointReferenceType EndpointReference; [System.ServiceModel.MessageBodyMemberAttribute(Namespace="", Order=1)] [System.Xml.Serialization.XmlAnyElementAttribute()] public System.Xml.XmlElement[] Any; public System.Xml.XmlAttribute[] AnyAttr; public ByeResponse() { } public ByeResponse(EndpointReferenceType EndpointReference, System.Xml.XmlElement[] Any, System.Xml.XmlAttribute[] AnyAttr) { this.EndpointReference = EndpointReference; this.Any = Any; this.AnyAttr = AnyAttr; } } [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] public interface RemoteDiscoveryPortChannel : RemoteDiscoveryPort, System.ServiceModel.IClientChannel { } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] public partial class RemoteDiscoveryPortClient : System.ServiceModel.ClientBase, RemoteDiscoveryPort { public RemoteDiscoveryPortClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : base(binding, remoteAddress) { } public HelloResponse Hello(HelloRequest request) { return base.Channel.Hello(request); } public System.Threading.Tasks.Task HelloAsync(HelloRequest request) { return base.Channel.HelloAsync(request); } public ByeResponse Bye(ByeRequest request) { return base.Channel.Bye(request); } public System.Threading.Tasks.Task ByeAsync(ByeRequest request) { return base.Channel.ByeAsync(request); } 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.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.ServiceModel.ICommunicationObject)(this)).EndClose)); } } [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] [System.ServiceModel.ServiceContractAttribute(Namespace="http://www.onvif.org/ver10/network/wsdl", ConfigurationName= "EC.Onvif.Discovery.DiscoveryLookupPort")] public interface DiscoveryLookupPort { [System.ServiceModel.OperationContractAttribute(Action="http://www.onvif.org/ver10/network/wsdl/Probe", ReplyAction="*")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)] ProbeResponse Probe(ProbeRequest request); [System.ServiceModel.OperationContractAttribute(Action="http://www.onvif.org/ver10/network/wsdl/Probe", ReplyAction="*")] System.Threading.Tasks.Task ProbeAsync(ProbeRequest request); } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] [System.ServiceModel.MessageContractAttribute(WrapperName="Probe", WrapperNamespace="http://www.onvif.org/ver10/network/wsdl", IsWrapped=true)] public partial class ProbeRequest { [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://schemas.xmlsoap.org/ws/2005/04/discovery", Order=0)] [System.Xml.Serialization.XmlElementAttribute(Namespace="http://schemas.xmlsoap.org/ws/2005/04/discovery")] public string Types; [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://schemas.xmlsoap.org/ws/2005/04/discovery", Order=1)] [System.Xml.Serialization.XmlElementAttribute(Namespace="http://schemas.xmlsoap.org/ws/2005/04/discovery")] public ScopesType Scopes; [System.ServiceModel.MessageBodyMemberAttribute(Namespace="", Order=2)] [System.Xml.Serialization.XmlAnyElementAttribute()] public System.Xml.XmlElement[] Any; public System.Xml.XmlAttribute[] AnyAttr; public ProbeRequest() { } public ProbeRequest(string Types, ScopesType Scopes, System.Xml.XmlElement[] Any, System.Xml.XmlAttribute[] AnyAttr) { this.Types = Types; this.Scopes = Scopes; this.Any = Any; this.AnyAttr = AnyAttr; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] [System.ServiceModel.MessageContractAttribute(WrapperName="ProbeResponse", WrapperNamespace="http://www.onvif.org/ver10/network/wsdl", IsWrapped=true)] public partial class ProbeResponse { [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://schemas.xmlsoap.org/ws/2005/04/discovery", Order=0)] [System.Xml.Serialization.XmlElementAttribute("ProbeMatch", Namespace="http://schemas.xmlsoap.org/ws/2005/04/discovery")] public ProbeMatchType[] ProbeMatch; [System.ServiceModel.MessageBodyMemberAttribute(Namespace="", Order=1)] [System.Xml.Serialization.XmlAnyElementAttribute()] public System.Xml.XmlElement[] Any; public System.Xml.XmlAttribute[] AnyAttr; public ProbeResponse() { } public ProbeResponse(ProbeMatchType[] ProbeMatch, System.Xml.XmlElement[] Any, System.Xml.XmlAttribute[] AnyAttr) { this.ProbeMatch = ProbeMatch; this.Any = Any; this.AnyAttr = AnyAttr; } } [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] public interface DiscoveryLookupPortChannel : DiscoveryLookupPort, System.ServiceModel.IClientChannel { } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] public partial class DiscoveryLookupPortClient : System.ServiceModel.ClientBase, DiscoveryLookupPort { public DiscoveryLookupPortClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : base(binding, remoteAddress) { } public ProbeResponse Probe(ProbeRequest request) { return base.Channel.Probe(request); } public System.Threading.Tasks.Task ProbeAsync(ProbeRequest request) { return base.Channel.ProbeAsync(request); } 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.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.ServiceModel.ICommunicationObject)(this)).EndClose)); } }