DuplexChannelFactory<TChannel> 构造函数

定义

初始化 DuplexChannelFactory<TChannel> 类的新实例。

重载

DuplexChannelFactory<TChannel>(Object)

使用实现回调协定的对象初始化 DuplexChannelFactory<TChannel> 类的新实例。

DuplexChannelFactory<TChannel>(Type, String, EndpointAddress)

使用指定类型的回调实例、配置和远程地址初始化 DuplexChannelFactory<TChannel> 类的新实例。

DuplexChannelFactory<TChannel>(Type, Binding, String)

使用指定类型的回调实例、绑定和远程地址初始化 DuplexChannelFactory<TChannel> 类的新实例。

DuplexChannelFactory<TChannel>(Type, Binding, EndpointAddress)

使用指定类型的回调实例、绑定和远程地址初始化 DuplexChannelFactory<TChannel> 类的新实例。

DuplexChannelFactory<TChannel>(InstanceContext, String, EndpointAddress)

使用实现回调协定和指定配置和终结点地址的对象初始化 DuplexChannelFactory<TChannel> 类的新实例。

DuplexChannelFactory<TChannel>(InstanceContext, Binding, String)

使用指定的实例上下文、绑定和远程地址初始化 DuplexChannelFactory<TChannel> 类的新实例。

DuplexChannelFactory<TChannel>(Object, String, EndpointAddress)

使用实现回调协定的对象以及指定配置和终结点地址初始化 DuplexChannelFactory<TChannel> 类的新实例。

DuplexChannelFactory<TChannel>(Object, Binding, String)

使用指定的回调对象、绑定和远程地址初始化 DuplexChannelFactory<TChannel> 类的新实例。

DuplexChannelFactory<TChannel>(Object, Binding, EndpointAddress)

使用实现回调协定和指定绑定和终结点地址的对象初始化 DuplexChannelFactory<TChannel> 类的新实例。

DuplexChannelFactory<TChannel>(Type, String)

使用指定类型的回调实例和配置初始化 DuplexChannelFactory<TChannel> 类的新实例。

DuplexChannelFactory<TChannel>(InstanceContext, Binding, EndpointAddress)

使用实现回调协定和指定绑定和终结点地址的对象初始化 DuplexChannelFactory<TChannel> 类的新实例。

DuplexChannelFactory<TChannel>(Type, Binding)

使用指定类型的回调实例和绑定初始化 DuplexChannelFactory<TChannel> 类的新实例。

DuplexChannelFactory<TChannel>(Type, ServiceEndpoint)

使用指定类型的回调实例和服务终结点初始化 DuplexChannelFactory<TChannel> 类的新实例。

DuplexChannelFactory<TChannel>(Type)

使用指定类型的回调实例初始化 DuplexChannelFactory<TChannel> 类的新实例。

DuplexChannelFactory<TChannel>(Object, Binding)

使用实现回调协定和指定绑定的对象初始化 DuplexChannelFactory<TChannel> 类的新实例。

DuplexChannelFactory<TChannel>(Object, ServiceEndpoint)

使用实现回调协定和指定终结点的对象初始化 DuplexChannelFactory<TChannel> 类的新实例。

DuplexChannelFactory<TChannel>(InstanceContext)

用指定的实例上下文初始化 DuplexChannelFactory<TChannel> 类的新实例。

DuplexChannelFactory<TChannel>(InstanceContext, Binding)

使用实现回调协定和指定绑定的上下文初始化 DuplexChannelFactory<TChannel> 类的新实例。

DuplexChannelFactory<TChannel>(InstanceContext, ServiceEndpoint)

使用实现回调协定和指定终结点的对象初始化 DuplexChannelFactory<TChannel> 类的新实例。

DuplexChannelFactory<TChannel>(InstanceContext, String)

使用实现回调协定以及指定配置的对象初始化 DuplexChannelFactory<TChannel> 类的新实例。

DuplexChannelFactory<TChannel>(Object, String)

使用实现回调协定以及指定配置的对象初始化 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
Object

Object,客户端用以侦听来自所连接服务的消息。

例外

callbackObjectnull

注解

使用此构造函数以编程方式(而不是使用应用程序配置文件)传递实现目标服务的回调协定的对象。

适用于

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)

参数

callbackInstanceType
Type

Type,客户端用以侦听来自所连接服务的消息。

endpointConfigurationName
String

用于终结点配置的名称。

remoteAddress
EndpointAddress

提供服务位置的 EndpointAddress

例外

callbackInstanceTypeendpointConfigurationNameremoteAddressnull

适用于

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)

参数

callbackInstanceType
Type

Type,客户端用以侦听来自所连接服务的消息。

binding
Binding

用于通过工厂生成的通道连接至服务的 Binding

remoteAddress
String

提供服务位置的远程地址。

例外

callbackInstanceTypebindingremoteAddressnull

适用于

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)

参数

callbackInstanceType
Type

Type,客户端用以侦听来自所连接服务的消息。

binding
Binding

用于通过工厂生成的通道连接至服务的 Binding

remoteAddress
EndpointAddress

提供服务位置的 EndpointAddress

例外

callbackInstanceTypebindingremoteAddressnull

适用于

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

例外

callbackInstanceendpointConfigurationNameremoteAddressnull

注解

使用此构造函数以编程方式传递实现目标服务地址信息的回调协定的实例上下文对象,并以编程方式传入地址信息,同时通过客户端应用程序配置文件确定剩余目标终结点信息。

适用于

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,客户端用以侦听来自所连接服务的消息。

binding
Binding

用于通过工厂生成的通道连接至服务的 Binding

remoteAddress
String

提供服务位置的远程地址。

例外

callbackInstancebindingremoteAddressnull

适用于

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)

参数

callbackObject
Object

Object,客户端用以侦听来自所连接服务的消息。

endpointConfigurationName
String

用于终结点配置的名称。

remoteAddress
EndpointAddress

提供服务位置的 EndpointAddress

例外

callbackObjectendpointConfigurationNameremoteAddressnull

注解

使用此构造函数以编程方式传递实现目标服务回调协定的服务对象以及传入地址信息,并通过客户端应用程序配置文件确定剩余目标终结点信息。

适用于

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)

参数

callbackObject
Object

Object,客户端用以侦听来自所连接服务的消息。

binding
Binding

用于通过工厂生成的通道连接至服务的 Binding

remoteAddress
String

提供服务位置的远程地址。

例外

callbackObjectbindingremoteAddressnull

适用于

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)

参数

callbackObject
Object

Object,客户端用以侦听来自所连接服务的消息。

binding
Binding

用于通过工厂生成的通道连接至服务的 Binding

remoteAddress
EndpointAddress

提供服务位置的 EndpointAddress

例外

callbackObjectbindingremoteAddressnull

注解

使用此构造函数以编程方式(而不是使用应用程序配置文件)传递实现目标服务回调协定的服务对象,并传入绑定和地址信息。

适用于

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)

参数

callbackInstanceType
Type

Type,客户端用以侦听来自所连接服务的消息。

endpointConfigurationName
String

用于终结点配置的名称。

例外

callbackInstanceTypeendpointConfigurationNamenull

适用于

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,客户端用以侦听来自所连接服务的消息。

binding
Binding

用于通过工厂生成的通道连接至服务的 Binding

remoteAddress
EndpointAddress

提供服务位置的 EndpointAddress

例外

callbackInstancebindingremoteAddressnull

注解

使用此构造函数以编程方式(而不是使用应用程序配置文件)传递实现目标服务的回调协定的实例上下文对象,并传入绑定和地址信息。

适用于

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
Type

Type,客户端用以侦听来自所连接服务的消息。

binding
Binding

用于通过工厂生成的通道连接至服务的 Binding

例外

callbackInstanceTypebindingnull

适用于

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)

参数

callbackInstanceType
Type

Type,客户端用以侦听来自所连接服务的消息。

endpoint
ServiceEndpoint

该服务的 ServiceEndpoint

例外

callbackInstanceTypenull

适用于

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
Type

Type,客户端用以侦听来自所连接服务的消息。

例外

callbackInstanceTypenull

适用于

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
Object

Object,客户端用以侦听来自所连接服务的消息。

binding
Binding

用于通过工厂生成的通道连接至服务的 Binding

例外

callbackObjectbindingnull

注解

使用此构造函数以编程方式(而不是使用应用程序配置文件)传递实现目标服务的回调协定的实例上下文对象,并传递绑定信息。

适用于

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)

参数

callbackObject
Object

Object,客户端用以侦听来自所连接服务的消息。

endpoint
ServiceEndpoint

工厂生成的通道所连接至的 ServiceEndpoint

例外

callbackObjectnull

注解

使用此构造函数以编程方式(而不是使用应用程序配置文件)传递实现目标服务回调协定的服务对象,并传递服务终结点信息。

适用于

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,客户端用以侦听来自所连接服务的消息。

例外

callbackInstancenull

适用于

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,客户端用以侦听来自所连接服务的消息。

binding
Binding

用于通过工厂生成的通道连接至服务的 Binding

例外

callbackInstancebindingnull

注解

使用此构造函数以编程方式(而不是使用应用程序配置文件)传递实现目标服务的回调协定的实例上下文对象,并传递绑定信息。

适用于

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

例外

callbackInstancenull

注解

使用此构造函数以编程方式(而不是使用应用程序配置文件)传递实现目标服务的回调协定的实例上下文对象,并传递终结点信息。

适用于

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

用于终结点配置的名称。

例外

callbackInstanceendpointConfigurationNamenull

注解

使用此构造函数传递实现目标服务的回调协定的实例上下文对象,并通过客户端应用程序配置文件确定目标终结点信息。

适用于

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)

参数

callbackObject
Object

Object,客户端用以侦听来自所连接服务的消息。

endpointConfigurationName
String

用于终结点的配置名称。

例外

callbackObjectendpointConfigurationNamenull

注解

使用此构造函数传递实现目标服务的回调协定的服务对象,并通过客户端应用程序配置文件确定目标终结点信息。

适用于