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。
例外
null
callbackInstanceType
、endpointConfigurationName
或 remoteAddress
。
适用于
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 ^ serviceEndpoint);
public DuplexChannelFactory (Type callbackInstanceType, System.ServiceModel.Description.ServiceEndpoint endpoint);
public DuplexChannelFactory (Type callbackInstanceType, System.ServiceModel.Description.ServiceEndpoint serviceEndpoint);
new System.ServiceModel.DuplexChannelFactory<'Channel> : Type * System.ServiceModel.Description.ServiceEndpoint -> System.ServiceModel.DuplexChannelFactory<'Channel>
new System.ServiceModel.DuplexChannelFactory<'Channel> : Type * System.ServiceModel.Description.ServiceEndpoint -> System.ServiceModel.DuplexChannelFactory<'Channel>
Public Sub New (callbackInstanceType As Type, endpoint As ServiceEndpoint)
Public Sub New (callbackInstanceType As Type, serviceEndpoint As ServiceEndpoint)
参数
- endpointserviceEndpoint
- ServiceEndpoint
服务的 ServiceEndpoint。
例外
callbackInstanceType
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
提供服务位置的远程地址。
例外
null
callbackInstanceType
、binding
或 remoteAddress
。
适用于
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。
例外
null
callbackInstanceType
、binding
或 remoteAddress
。
适用于
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。
例外
null
callbackInstance
、endpointConfigurationName
或 remoteAddress
。
注解
使用此构造函数传递实例上下文对象,该对象以编程方式实现目标服务地址信息的回调协定,以编程方式传入地址信息,并从客户端应用程序配置文件中确定剩余的目标终结点信息。
适用于
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。
例外
null
callbackInstance
、binding
或 remoteAddress
。
注解
使用此构造函数传递实现目标服务的回调协定的实例上下文对象,并以编程方式传入绑定和地址信息,而不是使用应用程序配置文件。
适用于
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。
例外
null
callbackObject
、endpointConfigurationName
或 remoteAddress
。
注解
使用此构造函数传递一个服务对象,该对象实现目标服务的回调协定,以编程方式传入地址信息,并从客户端应用程序配置文件中确定剩余的目标终结点信息。
适用于
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
提供服务位置的远程地址。
例外
null
callbackObject
、binding
或 remoteAddress
。
适用于
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。
例外
null
callbackObject
、binding
或 remoteAddress
。
注解
使用此构造函数传递一个服务对象,该对象实现目标服务的回调协定,并通过编程方式传入绑定和地址信息,而不是使用应用程序配置文件。
适用于
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
提供服务位置的远程地址。
例外
null
callbackInstance
、binding
或 remoteAddress
。
适用于
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, 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>(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
。
注解
使用此构造函数传递一个服务对象,该对象实现目标服务的回调协定并确定客户端应用程序配置文件中的目标终结点信息。