fajiao
3 years ago
26 changed files with 1113 additions and 185 deletions
@ -0,0 +1,725 @@ |
|||||
|
//------------------------------------------------------------------------------
|
||||
|
// <auto-generated>
|
||||
|
// 此代码由工具生成。
|
||||
|
//
|
||||
|
// 对此文件的更改可能导致不正确的行为,并在以下条件下丢失:
|
||||
|
// 代码重新生成。
|
||||
|
// </auto-generated>
|
||||
|
//------------------------------------------------------------------------------
|
||||
|
|
||||
|
namespace EC.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<HelloResponse> 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<ByeResponse> ByeAsync(ByeRequest request); |
||||
|
} |
||||
|
|
||||
|
/// <remarks/>
|
||||
|
[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; |
||||
|
|
||||
|
/// <remarks/>
|
||||
|
[System.Xml.Serialization.XmlElementAttribute(Order=0)] |
||||
|
public AttributedURI Address |
||||
|
{ |
||||
|
get |
||||
|
{ |
||||
|
return this.addressField; |
||||
|
} |
||||
|
set |
||||
|
{ |
||||
|
this.addressField = value; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
/// <remarks/>
|
||||
|
[System.Xml.Serialization.XmlElementAttribute(Order=1)] |
||||
|
public ReferencePropertiesType ReferenceProperties |
||||
|
{ |
||||
|
get |
||||
|
{ |
||||
|
return this.referencePropertiesField; |
||||
|
} |
||||
|
set |
||||
|
{ |
||||
|
this.referencePropertiesField = value; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
/// <remarks/>
|
||||
|
[System.Xml.Serialization.XmlElementAttribute(Order=2)] |
||||
|
public ReferenceParametersType ReferenceParameters |
||||
|
{ |
||||
|
get |
||||
|
{ |
||||
|
return this.referenceParametersField; |
||||
|
} |
||||
|
set |
||||
|
{ |
||||
|
this.referenceParametersField = value; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
/// <remarks/>
|
||||
|
[System.Xml.Serialization.XmlElementAttribute(Order=3)] |
||||
|
public AttributedQName PortType |
||||
|
{ |
||||
|
get |
||||
|
{ |
||||
|
return this.portTypeField; |
||||
|
} |
||||
|
set |
||||
|
{ |
||||
|
this.portTypeField = value; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
/// <remarks/>
|
||||
|
[System.Xml.Serialization.XmlElementAttribute(Order=4)] |
||||
|
public ServiceNameType ServiceName |
||||
|
{ |
||||
|
get |
||||
|
{ |
||||
|
return this.serviceNameField; |
||||
|
} |
||||
|
set |
||||
|
{ |
||||
|
this.serviceNameField = value; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
/// <remarks/>
|
||||
|
[System.Xml.Serialization.XmlAnyElementAttribute(Order=5)] |
||||
|
public System.Xml.XmlElement[] Any |
||||
|
{ |
||||
|
get |
||||
|
{ |
||||
|
return this.anyField; |
||||
|
} |
||||
|
set |
||||
|
{ |
||||
|
this.anyField = value; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
/// <remarks/>
|
||||
|
[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; |
||||
|
|
||||
|
/// <remarks/>
|
||||
|
[System.Xml.Serialization.XmlTextAttribute(DataType="anyURI")] |
||||
|
public string Value |
||||
|
{ |
||||
|
get |
||||
|
{ |
||||
|
return this.valueField; |
||||
|
} |
||||
|
set |
||||
|
{ |
||||
|
this.valueField = value; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
/// <remarks/>
|
||||
|
[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; |
||||
|
|
||||
|
/// <remarks/>
|
||||
|
[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; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
/// <remarks/>
|
||||
|
[System.Xml.Serialization.XmlElementAttribute(Order=1)] |
||||
|
public string Types |
||||
|
{ |
||||
|
get |
||||
|
{ |
||||
|
return this.typesField; |
||||
|
} |
||||
|
set |
||||
|
{ |
||||
|
this.typesField = value; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
/// <remarks/>
|
||||
|
[System.Xml.Serialization.XmlElementAttribute(Order=2)] |
||||
|
public ScopesType Scopes |
||||
|
{ |
||||
|
get |
||||
|
{ |
||||
|
return this.scopesField; |
||||
|
} |
||||
|
set |
||||
|
{ |
||||
|
this.scopesField = value; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
/// <remarks/>
|
||||
|
[System.Xml.Serialization.XmlElementAttribute(Order=3)] |
||||
|
public string XAddrs |
||||
|
{ |
||||
|
get |
||||
|
{ |
||||
|
return this.xAddrsField; |
||||
|
} |
||||
|
set |
||||
|
{ |
||||
|
this.xAddrsField = value; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
/// <remarks/>
|
||||
|
[System.Xml.Serialization.XmlElementAttribute(Order=4)] |
||||
|
public uint MetadataVersion |
||||
|
{ |
||||
|
get |
||||
|
{ |
||||
|
return this.metadataVersionField; |
||||
|
} |
||||
|
set |
||||
|
{ |
||||
|
this.metadataVersionField = value; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
/// <remarks/>
|
||||
|
[System.Xml.Serialization.XmlAnyElementAttribute(Order=5)] |
||||
|
public System.Xml.XmlElement[] Any |
||||
|
{ |
||||
|
get |
||||
|
{ |
||||
|
return this.anyField; |
||||
|
} |
||||
|
set |
||||
|
{ |
||||
|
this.anyField = value; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
/// <remarks/>
|
||||
|
[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; |
||||
|
|
||||
|
/// <remarks/>
|
||||
|
[System.Xml.Serialization.XmlAttributeAttribute(DataType="anyURI")] |
||||
|
public string MatchBy |
||||
|
{ |
||||
|
get |
||||
|
{ |
||||
|
return this.matchByField; |
||||
|
} |
||||
|
set |
||||
|
{ |
||||
|
this.matchByField = value; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
/// <remarks/>
|
||||
|
[System.Xml.Serialization.XmlTextAttribute(DataType="anyURI")] |
||||
|
public string[] Text |
||||
|
{ |
||||
|
get |
||||
|
{ |
||||
|
return this.textField; |
||||
|
} |
||||
|
set |
||||
|
{ |
||||
|
this.textField = value; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
/// <remarks/>
|
||||
|
[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; |
||||
|
|
||||
|
/// <remarks/>
|
||||
|
[System.Xml.Serialization.XmlAttributeAttribute(DataType="NCName")] |
||||
|
public string PortName |
||||
|
{ |
||||
|
get |
||||
|
{ |
||||
|
return this.portNameField; |
||||
|
} |
||||
|
set |
||||
|
{ |
||||
|
this.portNameField = value; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
/// <remarks/>
|
||||
|
[System.Xml.Serialization.XmlTextAttribute()] |
||||
|
public System.Xml.XmlQualifiedName Value |
||||
|
{ |
||||
|
get |
||||
|
{ |
||||
|
return this.valueField; |
||||
|
} |
||||
|
set |
||||
|
{ |
||||
|
this.valueField = value; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
/// <remarks/>
|
||||
|
[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; |
||||
|
|
||||
|
/// <remarks/>
|
||||
|
[System.Xml.Serialization.XmlTextAttribute()] |
||||
|
public System.Xml.XmlQualifiedName Value |
||||
|
{ |
||||
|
get |
||||
|
{ |
||||
|
return this.valueField; |
||||
|
} |
||||
|
set |
||||
|
{ |
||||
|
this.valueField = value; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
/// <remarks/>
|
||||
|
[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; |
||||
|
|
||||
|
/// <remarks/>
|
||||
|
[System.Xml.Serialization.XmlAnyElementAttribute(Order=0)] |
||||
|
public System.Xml.XmlElement[] Any |
||||
|
{ |
||||
|
get |
||||
|
{ |
||||
|
return this.anyField; |
||||
|
} |
||||
|
set |
||||
|
{ |
||||
|
this.anyField = value; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
/// <remarks/>
|
||||
|
[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; |
||||
|
|
||||
|
/// <remarks/>
|
||||
|
[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>, 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<HelloResponse> HelloAsync(HelloRequest request) |
||||
|
{ |
||||
|
return base.Channel.HelloAsync(request); |
||||
|
} |
||||
|
|
||||
|
public ByeResponse Bye(ByeRequest request) |
||||
|
{ |
||||
|
return base.Channel.Bye(request); |
||||
|
} |
||||
|
|
||||
|
public System.Threading.Tasks.Task<ByeResponse> 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.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)); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
[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<ProbeResponse> 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>, 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<ProbeResponse> 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.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)); |
||||
|
} |
||||
|
} |
||||
|
} |
@ -1,19 +1,15 @@ |
|||||
using EC.App.Core; |
using EC.App.Core; |
||||
using Furion.DependencyInjection; |
using Furion.DependencyInjection; |
||||
|
|
||||
namespace EC.App.ThatBLL.Onvif.Impl |
namespace EC.App.ThatBLL.Onvif |
||||
{ |
{ |
||||
public interface IDeviceBLL : IBLL, ISingleton |
public interface IDeviceBLL : IBLL, ISingleton |
||||
{ |
{ |
||||
#region Operate
|
|
||||
|
|
||||
/// <summary>
|
/// <summary>
|
||||
/// 是否连接
|
/// 是否连接
|
||||
/// </summary>
|
/// </summary>
|
||||
/// <param name="ip"></param>
|
/// <param name="ip"></param>
|
||||
/// <returns></returns>
|
/// <returns></returns>
|
||||
bool IsConnected(string ip); |
bool IsConnected(string ip); |
||||
|
|
||||
#endregion Operate
|
|
||||
} |
} |
||||
} |
} |
@ -0,0 +1,24 @@ |
|||||
|
using EC.App.Core; |
||||
|
using Furion.DependencyInjection; |
||||
|
using System.Threading.Tasks; |
||||
|
|
||||
|
namespace EC.App.ThatBLL.Onvif |
||||
|
{ |
||||
|
public interface IImagingBLL : IBLL, ISingleton |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 是否连接
|
||||
|
/// </summary>
|
||||
|
/// <param name="ip"></param>
|
||||
|
/// <returns></returns>
|
||||
|
bool IsConnected(string ip); |
||||
|
|
||||
|
Task<bool> FocusAbsoluteMove(string ip, float position); |
||||
|
|
||||
|
Task<bool> FocusRelativeMove(string ip, float distance); |
||||
|
|
||||
|
Task<bool> FocusContinuousMove(string ip, float speed); |
||||
|
|
||||
|
Task<bool> FocusStopMove(string ip); |
||||
|
} |
||||
|
} |
@ -1,27 +0,0 @@ |
|||||
using EC.App.Entity.Onvif; |
|
||||
using EC.App.ThatBLL.Onvif.Impl; |
|
||||
using EC.Onvif; |
|
||||
|
|
||||
namespace EC.App.ThatBLL.Onvif |
|
||||
{ |
|
||||
public class ImagingBLL : IImagingBLL |
|
||||
{ |
|
||||
private readonly OnvifClientService _ocService; |
|
||||
|
|
||||
public ImagingBLL(OnvifClientService onvifClientService) |
|
||||
{ |
|
||||
_ocService = onvifClientService; |
|
||||
} |
|
||||
|
|
||||
#region Operate
|
|
||||
|
|
||||
public bool IsConnected(string ip) |
|
||||
{ |
|
||||
bool flag = _ocService.TryGet(ip, out OnvifClient onvifClient); |
|
||||
bool ret = flag && onvifClient.IsImagingContected(); |
|
||||
return ret; |
|
||||
} |
|
||||
|
|
||||
#endregion Operate
|
|
||||
} |
|
||||
} |
|
@ -1,19 +0,0 @@ |
|||||
using EC.App.Core; |
|
||||
using Furion.DependencyInjection; |
|
||||
|
|
||||
namespace EC.App.ThatBLL.Onvif.Impl |
|
||||
{ |
|
||||
public interface IImagingBLL : IBLL, ISingleton |
|
||||
{ |
|
||||
#region Operate
|
|
||||
|
|
||||
/// <summary>
|
|
||||
/// 是否连接
|
|
||||
/// </summary>
|
|
||||
/// <param name="ip"></param>
|
|
||||
/// <returns></returns>
|
|
||||
bool IsConnected(string ip); |
|
||||
|
|
||||
#endregion Operate
|
|
||||
} |
|
||||
} |
|
@ -0,0 +1,55 @@ |
|||||
|
using EC.App.ThatService.Onvif.Impl; |
||||
|
using EC.Onvif; |
||||
|
using System.Threading.Tasks; |
||||
|
|
||||
|
namespace EC.App.ThatBLL.Onvif.Impl |
||||
|
{ |
||||
|
public class ImagingBLL : IImagingBLL |
||||
|
{ |
||||
|
private readonly OnvifClientService _ocService; |
||||
|
|
||||
|
public ImagingBLL(OnvifClientService onvifClientService) |
||||
|
{ |
||||
|
_ocService = onvifClientService; |
||||
|
} |
||||
|
|
||||
|
public bool IsConnected(string ip) |
||||
|
{ |
||||
|
bool flag = _ocService.TryGet(ip, out OnvifClient onvifClient); |
||||
|
bool ret = flag && onvifClient.IsImagingContected(); |
||||
|
return ret; |
||||
|
} |
||||
|
|
||||
|
public async Task<bool> FocusAbsoluteMove(string ip, float position) |
||||
|
{ |
||||
|
bool flag = _ocService.TryGet(ip, out OnvifClient onvifClient); |
||||
|
if (!flag) return false; |
||||
|
await onvifClient.FocusStopMove(); |
||||
|
return true; |
||||
|
} |
||||
|
|
||||
|
public async Task<bool> FocusRelativeMove(string ip, float distance) |
||||
|
{ |
||||
|
bool flag = _ocService.TryGet(ip, out OnvifClient onvifClient); |
||||
|
if (!flag) return false; |
||||
|
await onvifClient.FocusStopMove(); |
||||
|
return true; |
||||
|
} |
||||
|
|
||||
|
public async Task<bool> FocusContinuousMove(string ip, float speed) |
||||
|
{ |
||||
|
bool flag = _ocService.TryGet(ip, out OnvifClient onvifClient); |
||||
|
if (!flag) return false; |
||||
|
await onvifClient.FocusStopMove(); |
||||
|
return true; |
||||
|
} |
||||
|
|
||||
|
public async Task<bool> FocusStopMove(string ip) |
||||
|
{ |
||||
|
bool flag = _ocService.TryGet(ip, out OnvifClient onvifClient); |
||||
|
if (!flag) return false; |
||||
|
await onvifClient.FocusStopMove(); |
||||
|
return true; |
||||
|
} |
||||
|
} |
||||
|
} |
@ -0,0 +1,39 @@ |
|||||
|
using EC.App.ThatService.Onvif.Impl; |
||||
|
using EC.Onvif; |
||||
|
using System.Threading.Tasks; |
||||
|
|
||||
|
namespace EC.App.ThatBLL.Onvif.Impl |
||||
|
{ |
||||
|
public class MediaBLL : IMediaBLL |
||||
|
{ |
||||
|
private readonly OnvifClientService _ocService; |
||||
|
|
||||
|
public MediaBLL(OnvifClientService onvifClientService) |
||||
|
{ |
||||
|
_ocService = onvifClientService; |
||||
|
} |
||||
|
|
||||
|
public bool IsConnected(string ip) |
||||
|
{ |
||||
|
bool flag = _ocService.TryGet(ip, out OnvifClient onvifClient); |
||||
|
bool ret = flag && onvifClient.IsMediaContected(); |
||||
|
return ret; |
||||
|
} |
||||
|
|
||||
|
public async Task<string> GetStreamUri(string ip) |
||||
|
{ |
||||
|
bool flag = _ocService.TryGet(ip, out OnvifClient onvifClient); |
||||
|
if (!flag) return string.Empty; |
||||
|
string uri = await onvifClient.GetStreamUri(); |
||||
|
return uri; |
||||
|
} |
||||
|
|
||||
|
public async Task<string> GetSnapshotUri(string ip) |
||||
|
{ |
||||
|
bool flag = _ocService.TryGet(ip, out OnvifClient onvifClient); |
||||
|
if (!flag) return string.Empty; |
||||
|
string uri = await onvifClient.GetSnapshotUri(); |
||||
|
return uri; |
||||
|
} |
||||
|
} |
||||
|
} |
@ -1,27 +0,0 @@ |
|||||
using EC.App.Entity.Onvif; |
|
||||
using EC.App.ThatBLL.Onvif.Impl; |
|
||||
using EC.Onvif; |
|
||||
|
|
||||
namespace EC.App.ThatBLL.Onvif |
|
||||
{ |
|
||||
public class MediaBLL : IMediaBLL |
|
||||
{ |
|
||||
private readonly OnvifClientService _ocService; |
|
||||
|
|
||||
public MediaBLL(OnvifClientService onvifClientService) |
|
||||
{ |
|
||||
_ocService = onvifClientService; |
|
||||
} |
|
||||
|
|
||||
#region Operate
|
|
||||
|
|
||||
public bool IsConnected(string ip) |
|
||||
{ |
|
||||
bool flag = _ocService.TryGet(ip, out OnvifClient onvifClient); |
|
||||
bool ret = flag && onvifClient.IsMediaContected(); |
|
||||
return ret; |
|
||||
} |
|
||||
|
|
||||
#endregion Operate
|
|
||||
} |
|
||||
} |
|
@ -1,7 +1,7 @@ |
|||||
using EC.App.Core; |
using EC.App.Core; |
||||
using Furion.DependencyInjection; |
using Furion.DependencyInjection; |
||||
|
|
||||
namespace EC.App.ThatService.Onvif.Impl |
namespace EC.App.ThatService.Onvif |
||||
{ |
{ |
||||
public interface IOnvifClientService : IService, ISingleton |
public interface IOnvifClientService : IService, ISingleton |
||||
{ |
{ |
@ -1,7 +1,7 @@ |
|||||
using EC.App.ThatService.Onvif.Impl; |
using EC.App.Entity.Onvif; |
||||
using EC.Onvif; |
using EC.Onvif; |
||||
|
|
||||
namespace EC.App.Entity.Onvif |
namespace EC.App.ThatService.Onvif.Impl |
||||
{ |
{ |
||||
public class OnvifClientService : IOnvifClientService |
public class OnvifClientService : IOnvifClientService |
||||
{ |
{ |
@ -1,6 +1,6 @@ |
|||||
{ |
{ |
||||
"Apis": { |
"Apis": { |
||||
"onvif_http_url": "http://localhost:5000", |
"onvif_http_url": "http://localhost:6000", |
||||
"onvif_https_url": "https://localhost:5001" |
"onvif_https_url": "https://localhost:6001" |
||||
} |
} |
||||
} |
} |
Loading…
Reference in new issue