Редагувати

Поділитися через


DuplexChannelFactory<TChannel> Constructors

Definition

Initializes a new instance of the DuplexChannelFactory<TChannel> class.

Overloads

DuplexChannelFactory<TChannel>(Object)

Initializes a new instance of the DuplexChannelFactory<TChannel> class with an object that implements the callback contract.

DuplexChannelFactory<TChannel>(Type, String, EndpointAddress)

Initializes a new instance of the DuplexChannelFactory<TChannel> class with the specified type of callback instance, configuration, and remote address.

DuplexChannelFactory<TChannel>(Type, ServiceEndpoint)

Initializes a new instance of the DuplexChannelFactory<TChannel> class with specified type of callback instance and service endpoint.

DuplexChannelFactory<TChannel>(Type, Binding, String)

Initializes a new instance of the DuplexChannelFactory<TChannel> class with the specified type of callback instance, binding, and remote address.

DuplexChannelFactory<TChannel>(Type, Binding, EndpointAddress)

Initializes a new instance of the DuplexChannelFactory<TChannel> class with specified type of callback instance, binding, and remote address.

DuplexChannelFactory<TChannel>(InstanceContext, String, EndpointAddress)

Initializes a new instance of the DuplexChannelFactory<TChannel> class with an object that implements the callback contract and a specified configuration and endpoint address.

DuplexChannelFactory<TChannel>(InstanceContext, Binding, EndpointAddress)

Initializes a new instance of the DuplexChannelFactory<TChannel> class with an object that implements the callback contract and a specified binding and endpoint address.

DuplexChannelFactory<TChannel>(Object, String, EndpointAddress)

Initializes a new instance of the DuplexChannelFactory<TChannel> class with an object that implements the callback contract, and a specified configuration and endpoint address.

DuplexChannelFactory<TChannel>(Object, Binding, String)

Initializes a new instance of the DuplexChannelFactory<TChannel> class with specified callback object, binding, and remote address.

DuplexChannelFactory<TChannel>(Object, Binding, EndpointAddress)

Initializes a new instance of the DuplexChannelFactory<TChannel> class with an object that implements the callback contract and a specified binding and endpoint address.

DuplexChannelFactory<TChannel>(InstanceContext, Binding, String)

Initializes a new instance of the DuplexChannelFactory<TChannel> class with specified instance context, binding, and remote address.

DuplexChannelFactory<TChannel>(Type, Binding)

Initializes a new instance of the DuplexChannelFactory<TChannel> class with specified type of callback instance and binding.

DuplexChannelFactory<TChannel>(Type, String)

Initializes a new instance of the DuplexChannelFactory<TChannel> class with specified type of callback instance and configuration.

DuplexChannelFactory<TChannel>(Type)

Initializes a new instance of the DuplexChannelFactory<TChannel> class with specified type of callback instance.

DuplexChannelFactory<TChannel>(Object, Binding)

Initializes a new instance of the DuplexChannelFactory<TChannel> class with an object that implements the callback contract and a specified binding.

DuplexChannelFactory<TChannel>(Object, ServiceEndpoint)

Initializes a new instance of the DuplexChannelFactory<TChannel> class with an object that implements the callback contract and a specified endpoint.

DuplexChannelFactory<TChannel>(InstanceContext)

Initializes a new instance of the DuplexChannelFactory<TChannel> class with specified instance context.

DuplexChannelFactory<TChannel>(InstanceContext, Binding)

Initializes a new instance of the DuplexChannelFactory<TChannel> class with a context that implements the callback contract and a specified binding.

DuplexChannelFactory<TChannel>(InstanceContext, ServiceEndpoint)

Initializes a new instance of the DuplexChannelFactory<TChannel> class with an object that implements the callback contract and a specified endpoint.

DuplexChannelFactory<TChannel>(InstanceContext, String)

Initializes a new instance of the DuplexChannelFactory<TChannel> class with an object that implements the callback contract and a specified configuration.

DuplexChannelFactory<TChannel>(Object, String)

Initializes a new instance of the DuplexChannelFactory<TChannel> class with an object that implements the callback contract and a specified configuration.

DuplexChannelFactory<TChannel>(Object)

Source:
DuplexChannelFactory.cs
Source:
DuplexChannelFactory.cs

Initializes a new instance of the DuplexChannelFactory<TChannel> class with an object that implements the callback contract.

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)

Parameters

callbackObject
Object

The Object that the client uses to listen for messages from the connected service.

Exceptions

callbackObject is null.

Remarks

Use this constructor to pass an object that implements the callback contract for the target service programmatically rather than by using an application configuration file.

Applies to

DuplexChannelFactory<TChannel>(Type, String, EndpointAddress)

Initializes a new instance of the DuplexChannelFactory<TChannel> class with the specified type of callback instance, configuration, and remote address.

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)

Parameters

callbackInstanceType
Type

The Type that provides the callback instance that the client uses to listen for messages from the connected service.

endpointConfigurationName
String

The name used for the endpoint configuration.

remoteAddress
EndpointAddress

The EndpointAddress that provides the location of the service.

Exceptions

callbackInstanceType or endpointConfigurationName or remoteAddress is null.

Applies to

DuplexChannelFactory<TChannel>(Type, ServiceEndpoint)

Source:
DuplexChannelFactory.cs
Source:
DuplexChannelFactory.cs

Initializes a new instance of the DuplexChannelFactory<TChannel> class with specified type of callback instance and service endpoint.

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)

Parameters

callbackInstanceType
Type

The Type that provides the callback instance that the client uses to listen for messages from the connected service.

endpointserviceEndpoint
ServiceEndpoint

The ServiceEndpoint for the service.

Exceptions

callbackInstanceType is null.

Applies to

DuplexChannelFactory<TChannel>(Type, Binding, String)

Source:
DuplexChannelFactory.cs
Source:
DuplexChannelFactory.cs

Initializes a new instance of the DuplexChannelFactory<TChannel> class with the specified type of callback instance, binding, and remote address.

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)

Parameters

callbackInstanceType
Type

The Type that provides the callback instance that the client uses to listen for messages from the connected service.

binding
Binding

The Binding used to connect to the service by channels produced by the factory.

remoteAddress
String

The remote address that provides the location of the service.

Exceptions

callbackInstanceType or binding or remoteAddress is null.

Applies to

DuplexChannelFactory<TChannel>(Type, Binding, EndpointAddress)

Source:
DuplexChannelFactory.cs
Source:
DuplexChannelFactory.cs

Initializes a new instance of the DuplexChannelFactory<TChannel> class with specified type of callback instance, binding, and remote address.

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)

Parameters

callbackInstanceType
Type

The Type that provides the callback instance that the client uses to listen for messages from the connected service.

binding
Binding

The Binding used to connect to the service by channels produced by the factory.

remoteAddress
EndpointAddress

The EndpointAddress that provides the location of the service.

Exceptions

callbackInstanceType or binding or remoteAddress is null.

Applies to

DuplexChannelFactory<TChannel>(InstanceContext, String, EndpointAddress)

Initializes a new instance of the DuplexChannelFactory<TChannel> class with an object that implements the callback contract and a specified configuration and endpoint address.

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)

Parameters

callbackInstance
InstanceContext

The InstanceContext that the client uses to listen for messages from the connected service.

endpointConfigurationName
String

The name used for the endpoint configuration.

remoteAddress
EndpointAddress

The EndpointAddress that provides the location of the service.

Exceptions

callbackInstance or endpointConfigurationName or remoteAddress is null.

Remarks

Use this constructor to pass an instance context object that implements the callback contract for the target service address information programmatically, pass in the address information programmatically, and determine the remaining target endpoint information from the client application configuration file.

Applies to

DuplexChannelFactory<TChannel>(InstanceContext, Binding, EndpointAddress)

Source:
DuplexChannelFactory.cs
Source:
DuplexChannelFactory.cs

Initializes a new instance of the DuplexChannelFactory<TChannel> class with an object that implements the callback contract and a specified binding and endpoint address.

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)

Parameters

callbackInstance
InstanceContext

The InstanceContext that the client uses to listen for messages from the connected service.

binding
Binding

The Binding used to connect to the service by channels produced by the factory.

remoteAddress
EndpointAddress

The EndpointAddress that provides the location of the service.

Exceptions

callbackInstance or binding or remoteAddress is null.

Remarks

Use this constructor to pass an instance context object that implements the callback contract for the target service and to pass in the binding and address information programmatically rather than using an application configuration file.

Applies to

DuplexChannelFactory<TChannel>(Object, String, EndpointAddress)

Initializes a new instance of the DuplexChannelFactory<TChannel> class with an object that implements the callback contract, and a specified configuration and endpoint address.

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)

Parameters

callbackObject
Object

The Object that the client uses to listen for messages from the connected service.

endpointConfigurationName
String

The name used for the endpoint configuration.

remoteAddress
EndpointAddress

The EndpointAddress that provides the location of the service.

Exceptions

callbackObject or endpointConfigurationName or remoteAddress is null.

Remarks

Use this constructor to pass a service object that implements the callback contract for the target service, pass in the address information programmatically, and determine the remaining target endpoint information from the client application configuration file.

Applies to

DuplexChannelFactory<TChannel>(Object, Binding, String)

Source:
DuplexChannelFactory.cs
Source:
DuplexChannelFactory.cs

Initializes a new instance of the DuplexChannelFactory<TChannel> class with specified callback object, binding, and remote address.

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)

Parameters

callbackObject
Object

The Object that the client uses to listen for messages from the connected service.

binding
Binding

The Binding used to connect to the service by channels produced by the factory.

remoteAddress
String

The remote address that provides the location of the service.

Exceptions

callbackObject or binding or remoteAddress is null.

Applies to

DuplexChannelFactory<TChannel>(Object, Binding, EndpointAddress)

Source:
DuplexChannelFactory.cs
Source:
DuplexChannelFactory.cs

Initializes a new instance of the DuplexChannelFactory<TChannel> class with an object that implements the callback contract and a specified binding and endpoint address.

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)

Parameters

callbackObject
Object

The Object that the client uses to listen for messages from the connected service.

binding
Binding

The Binding used to connect to the service by channels produced by the factory.

remoteAddress
EndpointAddress

The EndpointAddress that provides the location of the service.

Exceptions

callbackObject or binding or remoteAddress is null.

Remarks

Use this constructor to pass a service object that implements the callback contract for the target service and pass in the binding and address information programmatically rather than using an application configuration file.

Applies to

DuplexChannelFactory<TChannel>(InstanceContext, Binding, String)

Source:
DuplexChannelFactory.cs
Source:
DuplexChannelFactory.cs

Initializes a new instance of the DuplexChannelFactory<TChannel> class with specified instance context, binding, and remote address.

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)

Parameters

callbackInstance
InstanceContext

The InstanceContext that the client uses to listen for messages from the connected service.

binding
Binding

The Binding used to connect to the service by channels produced by the factory.

remoteAddress
String

The remote address that provides the location of the service.

Exceptions

callbackInstance or binding or remoteAddress is null.

Applies to

DuplexChannelFactory<TChannel>(Type, Binding)

Source:
DuplexChannelFactory.cs
Source:
DuplexChannelFactory.cs

Initializes a new instance of the DuplexChannelFactory<TChannel> class with specified type of callback instance and binding.

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)

Parameters

callbackInstanceType
Type

The Type that provides the callback instance that the client uses to listen for messages from the connected service.

binding
Binding

The Binding used to connect to the service by channels produced by the factory.

Exceptions

callbackInstanceType or binding is null.

Applies to

DuplexChannelFactory<TChannel>(Type, String)

Initializes a new instance of the DuplexChannelFactory<TChannel> class with specified type of callback instance and configuration.

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)

Parameters

callbackInstanceType
Type

The Type that provides the callback instance that the client uses to listen for messages from the connected service.

endpointConfigurationName
String

The name used for the endpoint configuration.

Exceptions

callbackInstanceType or endpointConfigurationName is null.

Applies to

DuplexChannelFactory<TChannel>(Type)

Source:
DuplexChannelFactory.cs
Source:
DuplexChannelFactory.cs

Initializes a new instance of the DuplexChannelFactory<TChannel> class with specified type of callback instance.

public:
 DuplexChannelFactory(Type ^ callbackInstanceType);
public DuplexChannelFactory (Type callbackInstanceType);
new System.ServiceModel.DuplexChannelFactory<'Channel> : Type -> System.ServiceModel.DuplexChannelFactory<'Channel>
Public Sub New (callbackInstanceType As Type)

Parameters

callbackInstanceType
Type

The Type that provides the callback instance that the client uses to listen for messages from the connected service.

Exceptions

callbackInstanceType is null.

Applies to

DuplexChannelFactory<TChannel>(Object, Binding)

Source:
DuplexChannelFactory.cs
Source:
DuplexChannelFactory.cs

Initializes a new instance of the DuplexChannelFactory<TChannel> class with an object that implements the callback contract and a specified binding.

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)

Parameters

callbackObject
Object

The Object that the client uses to listen for messages from the connected service.

binding
Binding

The Binding used to connect to the service by channels produced by the factory.

Exceptions

callbackObject or binding is null.

Remarks

Use this constructor to pass an instance context object that implements the callback contract for the target service and to pass the binding information programmatically rather than by using an application configuration file.

Applies to

DuplexChannelFactory<TChannel>(Object, ServiceEndpoint)

Source:
DuplexChannelFactory.cs
Source:
DuplexChannelFactory.cs

Initializes a new instance of the DuplexChannelFactory<TChannel> class with an object that implements the callback contract and a specified endpoint.

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)

Parameters

callbackObject
Object

The Object that the client uses to listen for messages from the connected service.

endpoint
ServiceEndpoint

The ServiceEndpoint to which channels produced by the factory connect.

Exceptions

callbackObject is null.

Remarks

Use this constructor to pass a service object that implements the callback contract for the target service and to pass the service endpoint information programmatically rather than using an application configuration file.

Applies to

DuplexChannelFactory<TChannel>(InstanceContext)

Source:
DuplexChannelFactory.cs
Source:
DuplexChannelFactory.cs

Initializes a new instance of the DuplexChannelFactory<TChannel> class with specified instance context.

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)

Parameters

callbackInstance
InstanceContext

The InstanceContext that the client uses to listen for messages from the connected service.

Exceptions

callbackInstance is null.

Applies to

DuplexChannelFactory<TChannel>(InstanceContext, Binding)

Source:
DuplexChannelFactory.cs
Source:
DuplexChannelFactory.cs

Initializes a new instance of the DuplexChannelFactory<TChannel> class with a context that implements the callback contract and a specified binding.

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)

Parameters

callbackInstance
InstanceContext

The InstanceContext that the client uses to listen for messages from the connected service.

binding
Binding

The Binding used to connect to the service by channels produced by the factory.

Exceptions

callbackInstance or binding is null.

Remarks

Use this constructor to pass an instance context object that implements the callback contract for the target service and to pass the binding information programmatically rather than by using an application configuration file.

Applies to

DuplexChannelFactory<TChannel>(InstanceContext, ServiceEndpoint)

Source:
DuplexChannelFactory.cs
Source:
DuplexChannelFactory.cs

Initializes a new instance of the DuplexChannelFactory<TChannel> class with an object that implements the callback contract and a specified endpoint.

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)

Parameters

callbackInstance
InstanceContext

The InstanceContext that the client uses to listen for messages from the connected service.

endpoint
ServiceEndpoint

The ServiceEndpoint to which channels produced by the factory connect.

Exceptions

callbackInstance is null.

Remarks

Use this constructor to pass an instance context object that implements the callback contract for the target service and to pass the endpoint information programmatically rather than by using an application configuration file.

Applies to

DuplexChannelFactory<TChannel>(InstanceContext, String)

Initializes a new instance of the DuplexChannelFactory<TChannel> class with an object that implements the callback contract and a specified configuration.

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)

Parameters

callbackInstance
InstanceContext

The InstanceContext that the client uses to listen for messages from the connected service.

endpointConfigurationName
String

The name used for the endpoint configuration.

Exceptions

callbackInstance or endpointConfigurationName is null.

Remarks

Use this constructor to pass an instance context object that implements the callback contract for the target service and to determine the target endpoint information from the client application configuration file.

Applies to

DuplexChannelFactory<TChannel>(Object, String)

Initializes a new instance of the DuplexChannelFactory<TChannel> class with an object that implements the callback contract and a specified configuration.

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)

Parameters

callbackObject
Object

The Object that the client uses to listen for messages from the connected service.

endpointConfigurationName
String

The configuration name used for the endpoint.

Exceptions

callbackObject or endpointConfigurationName is null.

Remarks

Use this constructor to pass a service object that implements the callback contract for the target service and determine the target endpoint information from the client application configuration file.

Applies to