DuplexChannelFactory<TChannel> 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 DuplexChannelFactory<TChannel> 类的新实例。
重载
DuplexChannelFactory<TChannel>(Object)
- Source:
- DuplexChannelFactory.cs
- Source:
- DuplexChannelFactory.cs
- Source:
- DuplexChannelFactory.cs
使用实现回调协定的对象初始化 DuplexChannelFactory<TChannel> 类的新实例。
public:
DuplexChannelFactory(System::Object ^ callbackObject);
public DuplexChannelFactory (object callbackObject);
new System.ServiceModel.DuplexChannelFactory<'Channel> : obj -> System.ServiceModel.DuplexChannelFactory<'Channel>
Public Sub New (callbackObject As Object)
参数
例外
callbackObject
为 null
。
注解
使用此构造函数以编程方式(而不是使用应用程序配置文件)传递实现目标服务的回调协定的对象。
适用于
DuplexChannelFactory<TChannel>(Type, String, EndpointAddress)
- Source:
- DuplexChannelFactory.cs
- Source:
- DuplexChannelFactory.cs
使用指定类型的回调实例、配置和远程地址初始化 DuplexChannelFactory<TChannel> 类的新实例。
public:
DuplexChannelFactory(Type ^ callbackInstanceType, System::String ^ endpointConfigurationName, System::ServiceModel::EndpointAddress ^ remoteAddress);
public DuplexChannelFactory (Type callbackInstanceType, string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress);
new System.ServiceModel.DuplexChannelFactory<'Channel> : Type * string * System.ServiceModel.EndpointAddress -> System.ServiceModel.DuplexChannelFactory<'Channel>
Public Sub New (callbackInstanceType As Type, endpointConfigurationName As String, remoteAddress As EndpointAddress)
参数
- endpointConfigurationName
- String
用于终结点配置的名称。
- remoteAddress
- EndpointAddress
提供服务位置的 EndpointAddress。
例外
callbackInstanceType
、endpointConfigurationName
或 remoteAddress
为 null
。
适用于
DuplexChannelFactory<TChannel>(Type, Binding, String)
- Source:
- DuplexChannelFactory.cs
- Source:
- DuplexChannelFactory.cs
- Source:
- DuplexChannelFactory.cs
使用指定类型的回调实例、绑定和远程地址初始化 DuplexChannelFactory<TChannel> 类的新实例。
public:
DuplexChannelFactory(Type ^ callbackInstanceType, System::ServiceModel::Channels::Binding ^ binding, System::String ^ remoteAddress);
public DuplexChannelFactory (Type callbackInstanceType, System.ServiceModel.Channels.Binding binding, string remoteAddress);
new System.ServiceModel.DuplexChannelFactory<'Channel> : Type * System.ServiceModel.Channels.Binding * string -> System.ServiceModel.DuplexChannelFactory<'Channel>
Public Sub New (callbackInstanceType As Type, binding As Binding, remoteAddress As String)
参数
- remoteAddress
- String
提供服务位置的远程地址。
例外
callbackInstanceType
、binding
或 remoteAddress
为 null
。
适用于
DuplexChannelFactory<TChannel>(Type, Binding, EndpointAddress)
- Source:
- DuplexChannelFactory.cs
- Source:
- DuplexChannelFactory.cs
- Source:
- DuplexChannelFactory.cs
使用指定类型的回调实例、绑定和远程地址初始化 DuplexChannelFactory<TChannel> 类的新实例。
public:
DuplexChannelFactory(Type ^ callbackInstanceType, System::ServiceModel::Channels::Binding ^ binding, System::ServiceModel::EndpointAddress ^ remoteAddress);
public DuplexChannelFactory (Type callbackInstanceType, System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress);
new System.ServiceModel.DuplexChannelFactory<'Channel> : Type * System.ServiceModel.Channels.Binding * System.ServiceModel.EndpointAddress -> System.ServiceModel.DuplexChannelFactory<'Channel>
Public Sub New (callbackInstanceType As Type, binding As Binding, remoteAddress As EndpointAddress)
参数
- remoteAddress
- EndpointAddress
提供服务位置的 EndpointAddress。
例外
callbackInstanceType
、binding
或 remoteAddress
为 null
。
适用于
DuplexChannelFactory<TChannel>(InstanceContext, String, EndpointAddress)
- Source:
- DuplexChannelFactory.cs
- Source:
- DuplexChannelFactory.cs
使用实现回调协定和指定配置和终结点地址的对象初始化 DuplexChannelFactory<TChannel> 类的新实例。
public:
DuplexChannelFactory(System::ServiceModel::InstanceContext ^ callbackInstance, System::String ^ endpointConfigurationName, System::ServiceModel::EndpointAddress ^ remoteAddress);
public DuplexChannelFactory (System.ServiceModel.InstanceContext callbackInstance, string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress);
new System.ServiceModel.DuplexChannelFactory<'Channel> : System.ServiceModel.InstanceContext * string * System.ServiceModel.EndpointAddress -> System.ServiceModel.DuplexChannelFactory<'Channel>
Public Sub New (callbackInstance As InstanceContext, endpointConfigurationName As String, remoteAddress As EndpointAddress)
参数
- callbackInstance
- InstanceContext
InstanceContext,客户端用以侦听来自所连接服务的消息。
- endpointConfigurationName
- String
用于终结点配置的名称。
- remoteAddress
- EndpointAddress
提供服务位置的 EndpointAddress。
例外
callbackInstance
、endpointConfigurationName
或 remoteAddress
为 null
。
注解
使用此构造函数以编程方式传递实现目标服务地址信息的回调协定的实例上下文对象,并以编程方式传入地址信息,同时通过客户端应用程序配置文件确定剩余目标终结点信息。
适用于
DuplexChannelFactory<TChannel>(InstanceContext, Binding, String)
- Source:
- DuplexChannelFactory.cs
- Source:
- DuplexChannelFactory.cs
- Source:
- DuplexChannelFactory.cs
使用指定的实例上下文、绑定和远程地址初始化 DuplexChannelFactory<TChannel> 类的新实例。
public:
DuplexChannelFactory(System::ServiceModel::InstanceContext ^ callbackInstance, System::ServiceModel::Channels::Binding ^ binding, System::String ^ remoteAddress);
public DuplexChannelFactory (System.ServiceModel.InstanceContext callbackInstance, System.ServiceModel.Channels.Binding binding, string remoteAddress);
new System.ServiceModel.DuplexChannelFactory<'Channel> : System.ServiceModel.InstanceContext * System.ServiceModel.Channels.Binding * string -> System.ServiceModel.DuplexChannelFactory<'Channel>
Public Sub New (callbackInstance As InstanceContext, binding As Binding, remoteAddress As String)
参数
- callbackInstance
- InstanceContext
InstanceContext,客户端用以侦听来自所连接服务的消息。
- remoteAddress
- String
提供服务位置的远程地址。
例外
callbackInstance
、binding
或 remoteAddress
为 null
。
适用于
DuplexChannelFactory<TChannel>(Object, String, EndpointAddress)
- Source:
- DuplexChannelFactory.cs
- Source:
- DuplexChannelFactory.cs
使用实现回调协定的对象以及指定配置和终结点地址初始化 DuplexChannelFactory<TChannel> 类的新实例。
public:
DuplexChannelFactory(System::Object ^ callbackObject, System::String ^ endpointConfigurationName, System::ServiceModel::EndpointAddress ^ remoteAddress);
public DuplexChannelFactory (object callbackObject, string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress);
new System.ServiceModel.DuplexChannelFactory<'Channel> : obj * string * System.ServiceModel.EndpointAddress -> System.ServiceModel.DuplexChannelFactory<'Channel>
Public Sub New (callbackObject As Object, endpointConfigurationName As String, remoteAddress As EndpointAddress)
参数
- endpointConfigurationName
- String
用于终结点配置的名称。
- remoteAddress
- EndpointAddress
提供服务位置的 EndpointAddress。
例外
callbackObject
、endpointConfigurationName
或 remoteAddress
为 null
。
注解
使用此构造函数以编程方式传递实现目标服务回调协定的服务对象以及传入地址信息,并通过客户端应用程序配置文件确定剩余目标终结点信息。
适用于
DuplexChannelFactory<TChannel>(Object, Binding, String)
- Source:
- DuplexChannelFactory.cs
- Source:
- DuplexChannelFactory.cs
- Source:
- DuplexChannelFactory.cs
使用指定的回调对象、绑定和远程地址初始化 DuplexChannelFactory<TChannel> 类的新实例。
public:
DuplexChannelFactory(System::Object ^ callbackObject, System::ServiceModel::Channels::Binding ^ binding, System::String ^ remoteAddress);
public DuplexChannelFactory (object callbackObject, System.ServiceModel.Channels.Binding binding, string remoteAddress);
new System.ServiceModel.DuplexChannelFactory<'Channel> : obj * System.ServiceModel.Channels.Binding * string -> System.ServiceModel.DuplexChannelFactory<'Channel>
Public Sub New (callbackObject As Object, binding As Binding, remoteAddress As String)
参数
- remoteAddress
- String
提供服务位置的远程地址。
例外
callbackObject
、binding
或 remoteAddress
为 null
。
适用于
DuplexChannelFactory<TChannel>(Object, Binding, EndpointAddress)
- Source:
- DuplexChannelFactory.cs
- Source:
- DuplexChannelFactory.cs
- Source:
- DuplexChannelFactory.cs
使用实现回调协定和指定绑定和终结点地址的对象初始化 DuplexChannelFactory<TChannel> 类的新实例。
public:
DuplexChannelFactory(System::Object ^ callbackObject, System::ServiceModel::Channels::Binding ^ binding, System::ServiceModel::EndpointAddress ^ remoteAddress);
public DuplexChannelFactory (object callbackObject, System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress);
new System.ServiceModel.DuplexChannelFactory<'Channel> : obj * System.ServiceModel.Channels.Binding * System.ServiceModel.EndpointAddress -> System.ServiceModel.DuplexChannelFactory<'Channel>
Public Sub New (callbackObject As Object, binding As Binding, remoteAddress As EndpointAddress)
参数
- remoteAddress
- EndpointAddress
提供服务位置的 EndpointAddress。
例外
callbackObject
、binding
或 remoteAddress
为 null
。
注解
使用此构造函数以编程方式(而不是使用应用程序配置文件)传递实现目标服务回调协定的服务对象,并传入绑定和地址信息。
适用于
DuplexChannelFactory<TChannel>(Type, String)
- Source:
- DuplexChannelFactory.cs
- Source:
- DuplexChannelFactory.cs
使用指定类型的回调实例和配置初始化 DuplexChannelFactory<TChannel> 类的新实例。
public:
DuplexChannelFactory(Type ^ callbackInstanceType, System::String ^ endpointConfigurationName);
public DuplexChannelFactory (Type callbackInstanceType, string endpointConfigurationName);
new System.ServiceModel.DuplexChannelFactory<'Channel> : Type * string -> System.ServiceModel.DuplexChannelFactory<'Channel>
Public Sub New (callbackInstanceType As Type, endpointConfigurationName As String)
参数
- endpointConfigurationName
- String
用于终结点配置的名称。
例外
callbackInstanceType
或 endpointConfigurationName
为 null
。
适用于
DuplexChannelFactory<TChannel>(InstanceContext, Binding, EndpointAddress)
- Source:
- DuplexChannelFactory.cs
- Source:
- DuplexChannelFactory.cs
- Source:
- DuplexChannelFactory.cs
使用实现回调协定和指定绑定和终结点地址的对象初始化 DuplexChannelFactory<TChannel> 类的新实例。
public:
DuplexChannelFactory(System::ServiceModel::InstanceContext ^ callbackInstance, System::ServiceModel::Channels::Binding ^ binding, System::ServiceModel::EndpointAddress ^ remoteAddress);
public DuplexChannelFactory (System.ServiceModel.InstanceContext callbackInstance, System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress);
new System.ServiceModel.DuplexChannelFactory<'Channel> : System.ServiceModel.InstanceContext * System.ServiceModel.Channels.Binding * System.ServiceModel.EndpointAddress -> System.ServiceModel.DuplexChannelFactory<'Channel>
Public Sub New (callbackInstance As InstanceContext, binding As Binding, remoteAddress As EndpointAddress)
参数
- callbackInstance
- InstanceContext
InstanceContext,客户端用以侦听来自所连接服务的消息。
- remoteAddress
- EndpointAddress
提供服务位置的 EndpointAddress。
例外
callbackInstance
、binding
或 remoteAddress
为 null
。
注解
使用此构造函数以编程方式(而不是使用应用程序配置文件)传递实现目标服务的回调协定的实例上下文对象,并传入绑定和地址信息。
适用于
DuplexChannelFactory<TChannel>(Type, Binding)
- Source:
- DuplexChannelFactory.cs
- Source:
- DuplexChannelFactory.cs
- Source:
- DuplexChannelFactory.cs
使用指定类型的回调实例和绑定初始化 DuplexChannelFactory<TChannel> 类的新实例。
public:
DuplexChannelFactory(Type ^ callbackInstanceType, System::ServiceModel::Channels::Binding ^ binding);
public DuplexChannelFactory (Type callbackInstanceType, System.ServiceModel.Channels.Binding binding);
new System.ServiceModel.DuplexChannelFactory<'Channel> : Type * System.ServiceModel.Channels.Binding -> System.ServiceModel.DuplexChannelFactory<'Channel>
Public Sub New (callbackInstanceType As Type, binding As Binding)
参数
例外
callbackInstanceType
或 binding
为 null
。
适用于
DuplexChannelFactory<TChannel>(Type, ServiceEndpoint)
- Source:
- DuplexChannelFactory.cs
- Source:
- DuplexChannelFactory.cs
- Source:
- DuplexChannelFactory.cs
使用指定类型的回调实例和服务终结点初始化 DuplexChannelFactory<TChannel> 类的新实例。
public:
DuplexChannelFactory(Type ^ callbackInstanceType, System::ServiceModel::Description::ServiceEndpoint ^ endpoint);
public DuplexChannelFactory (Type callbackInstanceType, System.ServiceModel.Description.ServiceEndpoint endpoint);
new System.ServiceModel.DuplexChannelFactory<'Channel> : Type * System.ServiceModel.Description.ServiceEndpoint -> System.ServiceModel.DuplexChannelFactory<'Channel>
Public Sub New (callbackInstanceType As Type, endpoint As ServiceEndpoint)
参数
- endpoint
- ServiceEndpoint
该服务的 ServiceEndpoint。
例外
callbackInstanceType
为 null
。
适用于
DuplexChannelFactory<TChannel>(Type)
- Source:
- DuplexChannelFactory.cs
- Source:
- DuplexChannelFactory.cs
- Source:
- DuplexChannelFactory.cs
使用指定类型的回调实例初始化 DuplexChannelFactory<TChannel> 类的新实例。
public:
DuplexChannelFactory(Type ^ callbackInstanceType);
public DuplexChannelFactory (Type callbackInstanceType);
new System.ServiceModel.DuplexChannelFactory<'Channel> : Type -> System.ServiceModel.DuplexChannelFactory<'Channel>
Public Sub New (callbackInstanceType As Type)
参数
例外
callbackInstanceType
为 null
。
适用于
DuplexChannelFactory<TChannel>(Object, Binding)
- Source:
- DuplexChannelFactory.cs
- Source:
- DuplexChannelFactory.cs
- Source:
- DuplexChannelFactory.cs
使用实现回调协定和指定绑定的对象初始化 DuplexChannelFactory<TChannel> 类的新实例。
public:
DuplexChannelFactory(System::Object ^ callbackObject, System::ServiceModel::Channels::Binding ^ binding);
public DuplexChannelFactory (object callbackObject, System.ServiceModel.Channels.Binding binding);
new System.ServiceModel.DuplexChannelFactory<'Channel> : obj * System.ServiceModel.Channels.Binding -> System.ServiceModel.DuplexChannelFactory<'Channel>
Public Sub New (callbackObject As Object, binding As Binding)
参数
例外
callbackObject
或 binding
为 null
。
注解
使用此构造函数以编程方式(而不是使用应用程序配置文件)传递实现目标服务的回调协定的实例上下文对象,并传递绑定信息。
适用于
DuplexChannelFactory<TChannel>(Object, ServiceEndpoint)
- Source:
- DuplexChannelFactory.cs
- Source:
- DuplexChannelFactory.cs
- Source:
- DuplexChannelFactory.cs
使用实现回调协定和指定终结点的对象初始化 DuplexChannelFactory<TChannel> 类的新实例。
public:
DuplexChannelFactory(System::Object ^ callbackObject, System::ServiceModel::Description::ServiceEndpoint ^ endpoint);
public DuplexChannelFactory (object callbackObject, System.ServiceModel.Description.ServiceEndpoint endpoint);
new System.ServiceModel.DuplexChannelFactory<'Channel> : obj * System.ServiceModel.Description.ServiceEndpoint -> System.ServiceModel.DuplexChannelFactory<'Channel>
Public Sub New (callbackObject As Object, endpoint As ServiceEndpoint)
参数
- endpoint
- ServiceEndpoint
工厂生成的通道所连接至的 ServiceEndpoint。
例外
callbackObject
为 null
。
注解
使用此构造函数以编程方式(而不是使用应用程序配置文件)传递实现目标服务回调协定的服务对象,并传递服务终结点信息。
适用于
DuplexChannelFactory<TChannel>(InstanceContext)
- Source:
- DuplexChannelFactory.cs
- Source:
- DuplexChannelFactory.cs
- Source:
- DuplexChannelFactory.cs
用指定的实例上下文初始化 DuplexChannelFactory<TChannel> 类的新实例。
public:
DuplexChannelFactory(System::ServiceModel::InstanceContext ^ callbackInstance);
public DuplexChannelFactory (System.ServiceModel.InstanceContext callbackInstance);
new System.ServiceModel.DuplexChannelFactory<'Channel> : System.ServiceModel.InstanceContext -> System.ServiceModel.DuplexChannelFactory<'Channel>
Public Sub New (callbackInstance As InstanceContext)
参数
- callbackInstance
- InstanceContext
InstanceContext,客户端用以侦听来自所连接服务的消息。
例外
callbackInstance
为 null
。
适用于
DuplexChannelFactory<TChannel>(InstanceContext, Binding)
- Source:
- DuplexChannelFactory.cs
- Source:
- DuplexChannelFactory.cs
- Source:
- DuplexChannelFactory.cs
使用实现回调协定和指定绑定的上下文初始化 DuplexChannelFactory<TChannel> 类的新实例。
public:
DuplexChannelFactory(System::ServiceModel::InstanceContext ^ callbackInstance, System::ServiceModel::Channels::Binding ^ binding);
public DuplexChannelFactory (System.ServiceModel.InstanceContext callbackInstance, System.ServiceModel.Channels.Binding binding);
new System.ServiceModel.DuplexChannelFactory<'Channel> : System.ServiceModel.InstanceContext * System.ServiceModel.Channels.Binding -> System.ServiceModel.DuplexChannelFactory<'Channel>
Public Sub New (callbackInstance As InstanceContext, binding As Binding)
参数
- callbackInstance
- InstanceContext
InstanceContext,客户端用以侦听来自所连接服务的消息。
例外
callbackInstance
或 binding
为 null
。
注解
使用此构造函数以编程方式(而不是使用应用程序配置文件)传递实现目标服务的回调协定的实例上下文对象,并传递绑定信息。
适用于
DuplexChannelFactory<TChannel>(InstanceContext, ServiceEndpoint)
- Source:
- DuplexChannelFactory.cs
- Source:
- DuplexChannelFactory.cs
- Source:
- DuplexChannelFactory.cs
使用实现回调协定和指定终结点的对象初始化 DuplexChannelFactory<TChannel> 类的新实例。
public:
DuplexChannelFactory(System::ServiceModel::InstanceContext ^ callbackInstance, System::ServiceModel::Description::ServiceEndpoint ^ endpoint);
public DuplexChannelFactory (System.ServiceModel.InstanceContext callbackInstance, System.ServiceModel.Description.ServiceEndpoint endpoint);
new System.ServiceModel.DuplexChannelFactory<'Channel> : System.ServiceModel.InstanceContext * System.ServiceModel.Description.ServiceEndpoint -> System.ServiceModel.DuplexChannelFactory<'Channel>
Public Sub New (callbackInstance As InstanceContext, endpoint As ServiceEndpoint)
参数
- callbackInstance
- InstanceContext
InstanceContext,客户端用以侦听来自所连接服务的消息。
- endpoint
- ServiceEndpoint
工厂生成的通道所连接至的 ServiceEndpoint。
例外
callbackInstance
为 null
。
注解
使用此构造函数以编程方式(而不是使用应用程序配置文件)传递实现目标服务的回调协定的实例上下文对象,并传递终结点信息。
适用于
DuplexChannelFactory<TChannel>(InstanceContext, String)
- Source:
- DuplexChannelFactory.cs
- Source:
- DuplexChannelFactory.cs
使用实现回调协定以及指定配置的对象初始化 DuplexChannelFactory<TChannel> 类的新实例。
public:
DuplexChannelFactory(System::ServiceModel::InstanceContext ^ callbackInstance, System::String ^ endpointConfigurationName);
public DuplexChannelFactory (System.ServiceModel.InstanceContext callbackInstance, string endpointConfigurationName);
new System.ServiceModel.DuplexChannelFactory<'Channel> : System.ServiceModel.InstanceContext * string -> System.ServiceModel.DuplexChannelFactory<'Channel>
Public Sub New (callbackInstance As InstanceContext, endpointConfigurationName As String)
参数
- callbackInstance
- InstanceContext
InstanceContext,客户端用以侦听来自所连接服务的消息。
- endpointConfigurationName
- String
用于终结点配置的名称。
例外
callbackInstance
或 endpointConfigurationName
为 null
。
注解
使用此构造函数传递实现目标服务的回调协定的实例上下文对象,并通过客户端应用程序配置文件确定目标终结点信息。
适用于
DuplexChannelFactory<TChannel>(Object, String)
- Source:
- DuplexChannelFactory.cs
- Source:
- DuplexChannelFactory.cs
使用实现回调协定以及指定配置的对象初始化 DuplexChannelFactory<TChannel> 类的新实例。
public:
DuplexChannelFactory(System::Object ^ callbackObject, System::String ^ endpointConfigurationName);
public DuplexChannelFactory (object callbackObject, string endpointConfigurationName);
new System.ServiceModel.DuplexChannelFactory<'Channel> : obj * string -> System.ServiceModel.DuplexChannelFactory<'Channel>
Public Sub New (callbackObject As Object, endpointConfigurationName As String)
参数
- endpointConfigurationName
- String
用于终结点的配置名称。
例外
callbackObject
或 endpointConfigurationName
为 null
。
注解
使用此构造函数传递实现目标服务的回调协定的服务对象,并通过客户端应用程序配置文件确定目标终结点信息。