DuplexChannelFactory<TChannel>.CreateChannel Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a duplex channel of a specified type to a specified endpoint address.
Overloads
CreateChannel(Object, Binding, EndpointAddress, Uri) |
Creates a duplex channel between a service and a callback instance on the client. |
CreateChannel(InstanceContext) |
Creates a duplex channel between a service and a callback instance on the client. |
CreateChannel(Object, String) |
Creates a duplex channel between a service and a callback instance on the client. |
CreateChannel(EndpointAddress, Uri) |
Creates a duplex channel between a service and a callback instance on the client. |
CreateChannel(InstanceContext, EndpointAddress) |
Creates a duplex channel between a service and a callback instance on the client. |
CreateChannel(InstanceContext, String) |
Creates a duplex channel between a service and a callback instance on the client. |
CreateChannel(Object, Binding, EndpointAddress) |
Creates a duplex channel between a service and a callback instance on the client. |
CreateChannel(InstanceContext, Binding, EndpointAddress) |
Creates a duplex channel between a service and a callback instance on the client. |
CreateChannel(InstanceContext, EndpointAddress, Uri) |
Creates a duplex channel between a service and a callback instance on the client. |
CreateChannel(InstanceContext, Binding, EndpointAddress, Uri) |
Creates a duplex channel between a service and a callback instance on the client. |
CreateChannel(Object, Binding, EndpointAddress, Uri)
- Source:
- DuplexChannelFactory.cs
Creates a duplex channel between a service and a callback instance on the client.
public:
static TChannel CreateChannel(System::Object ^ callbackObject, System::ServiceModel::Channels::Binding ^ binding, System::ServiceModel::EndpointAddress ^ endpointAddress, Uri ^ via);
public static TChannel CreateChannel (object callbackObject, System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress endpointAddress, Uri via);
static member CreateChannel : obj * System.ServiceModel.Channels.Binding * System.ServiceModel.EndpointAddress * Uri -> 'Channel
Public Shared Function CreateChannel (callbackObject As Object, binding As Binding, endpointAddress As EndpointAddress, via As Uri) As TChannel
Parameters
- callbackObject
- Object
The Object that the client uses to listen for messages from the connected service.
- endpointAddress
- EndpointAddress
The EndpointAddress that provides the location of the service.
Returns
A channel of type TChannel
, the generic parameter for the factory, between the client and service.
Exceptions
binding
or endpointAddress
is null
.
callbackInstance
or callbackInstance
.UserObject is null
.
Applies to
CreateChannel(InstanceContext)
- Source:
- DuplexChannelFactory.cs
Creates a duplex channel between a service and a callback instance on the client.
public:
TChannel CreateChannel(System::ServiceModel::InstanceContext ^ callbackInstance);
public TChannel CreateChannel (System.ServiceModel.InstanceContext callbackInstance);
override this.CreateChannel : System.ServiceModel.InstanceContext -> 'Channel
Public Function CreateChannel (callbackInstance As InstanceContext) As TChannel
Parameters
- callbackInstance
- InstanceContext
The InstanceContext that the client uses to listen for messages from the connected service.
Returns
A duplex channel of type TChannel
, the generic parameter for the factory, between the client and service.
Exceptions
callbackInstance
or callbackInstance
.UserObject is null
.
Applies to
CreateChannel(Object, String)
Creates a duplex channel between a service and a callback instance on the client.
public:
static TChannel CreateChannel(System::Object ^ callbackObject, System::String ^ endpointConfigurationName);
public static TChannel CreateChannel (object callbackObject, string endpointConfigurationName);
static member CreateChannel : obj * string -> 'Channel
Public Shared Function CreateChannel (callbackObject As Object, endpointConfigurationName As String) As TChannel
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.
Returns
A channel of type TChannel
, the generic parameter for the factory, between the client and service.
Exceptions
endpointConfigurationName
is null
.
callbackInstance
or callbackInstance
.UserObject is null
.
Applies to
CreateChannel(EndpointAddress, Uri)
- Source:
- DuplexChannelFactory.cs
Creates a duplex channel between a service and a callback instance on the client.
public:
override TChannel CreateChannel(System::ServiceModel::EndpointAddress ^ address, Uri ^ via);
public override TChannel CreateChannel (System.ServiceModel.EndpointAddress address, Uri via);
override this.CreateChannel : System.ServiceModel.EndpointAddress * Uri -> 'Channel
Public Overrides Function CreateChannel (address As EndpointAddress, via As Uri) As TChannel
Parameters
- address
- EndpointAddress
The EndpointAddress that provides the location of the service.
Returns
A duplex channel of type TChannel
, the generic parameter for the factory, between the client and service.
Exceptions
address
is null
.
Applies to
CreateChannel(InstanceContext, EndpointAddress)
- Source:
- DuplexChannelFactory.cs
Creates a duplex channel between a service and a callback instance on the client.
public:
TChannel CreateChannel(System::ServiceModel::InstanceContext ^ callbackInstance, System::ServiceModel::EndpointAddress ^ address);
public TChannel CreateChannel (System.ServiceModel.InstanceContext callbackInstance, System.ServiceModel.EndpointAddress address);
override this.CreateChannel : System.ServiceModel.InstanceContext * System.ServiceModel.EndpointAddress -> 'Channel
Public Function CreateChannel (callbackInstance As InstanceContext, address As EndpointAddress) As TChannel
Parameters
- callbackInstance
- InstanceContext
The InstanceContext that the client uses to listen for messages from the connected service.
- address
- EndpointAddress
The EndpointAddress that provides the location of the service.
Returns
A duplex channel of type TChannel
, the generic parameter for the factory, between the client and service.
Exceptions
address
is null
.
callbackInstance
or callbackInstance
.UserObject is null
.
Applies to
CreateChannel(InstanceContext, String)
Creates a duplex channel between a service and a callback instance on the client.
public:
static TChannel CreateChannel(System::ServiceModel::InstanceContext ^ callbackInstance, System::String ^ endpointConfigurationName);
public static TChannel CreateChannel (System.ServiceModel.InstanceContext callbackInstance, string endpointConfigurationName);
static member CreateChannel : System.ServiceModel.InstanceContext * string -> 'Channel
Public Shared Function CreateChannel (callbackInstance As InstanceContext, endpointConfigurationName As String) As TChannel
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.
Returns
A channel of type TChannel
, the generic parameter for the factory, between the client and service.
Exceptions
endpointConfigurationName
is null
.
callbackInstance
or callbackInstance
.UserObject is null
.
Applies to
CreateChannel(Object, Binding, EndpointAddress)
- Source:
- DuplexChannelFactory.cs
Creates a duplex channel between a service and a callback instance on the client.
public:
static TChannel CreateChannel(System::Object ^ callbackObject, System::ServiceModel::Channels::Binding ^ binding, System::ServiceModel::EndpointAddress ^ endpointAddress);
public static TChannel CreateChannel (object callbackObject, System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress endpointAddress);
static member CreateChannel : obj * System.ServiceModel.Channels.Binding * System.ServiceModel.EndpointAddress -> 'Channel
Public Shared Function CreateChannel (callbackObject As Object, binding As Binding, endpointAddress As EndpointAddress) As TChannel
Parameters
- callbackObject
- Object
The Object that the client uses to listen for messages from the connected service.
- endpointAddress
- EndpointAddress
The EndpointAddress that provides the location of the service.
Returns
A channel of type TChannel
, the generic parameter for the factory, between the client and service.
Exceptions
binding
or endpointAddress
is null
.
callbackInstance
or callbackInstance
.UserObject is null
.
Applies to
CreateChannel(InstanceContext, Binding, EndpointAddress)
- Source:
- DuplexChannelFactory.cs
Creates a duplex channel between a service and a callback instance on the client.
public:
static TChannel CreateChannel(System::ServiceModel::InstanceContext ^ callbackInstance, System::ServiceModel::Channels::Binding ^ binding, System::ServiceModel::EndpointAddress ^ endpointAddress);
public static TChannel CreateChannel (System.ServiceModel.InstanceContext callbackInstance, System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress endpointAddress);
static member CreateChannel : System.ServiceModel.InstanceContext * System.ServiceModel.Channels.Binding * System.ServiceModel.EndpointAddress -> 'Channel
Public Shared Function CreateChannel (callbackInstance As InstanceContext, binding As Binding, endpointAddress As EndpointAddress) As TChannel
Parameters
- callbackInstance
- InstanceContext
The InstanceContext that the client uses to listen for messages from the connected service.
- endpointAddress
- EndpointAddress
The EndpointAddress that provides the location of the service.
Returns
A channel of type TChannel
, the generic parameter for the factory, between the client and service.
Exceptions
binding
or endpointAddress
is null
.
callbackInstance
or callbackInstance
.UserObject is null
.
Applies to
CreateChannel(InstanceContext, EndpointAddress, Uri)
- Source:
- DuplexChannelFactory.cs
Creates a duplex channel between a service and a callback instance on the client.
public:
virtual TChannel CreateChannel(System::ServiceModel::InstanceContext ^ callbackInstance, System::ServiceModel::EndpointAddress ^ address, Uri ^ via);
public virtual TChannel CreateChannel (System.ServiceModel.InstanceContext callbackInstance, System.ServiceModel.EndpointAddress address, Uri via);
override this.CreateChannel : System.ServiceModel.InstanceContext * System.ServiceModel.EndpointAddress * Uri -> 'Channel
Public Overridable Function CreateChannel (callbackInstance As InstanceContext, address As EndpointAddress, via As Uri) As TChannel
Parameters
- callbackInstance
- InstanceContext
The InstanceContext that the client uses to listen for messages from the connected service.
- address
- EndpointAddress
The EndpointAddress that provides the location of the service.
Returns
A channel of type TChannel
, the generic parameter for the factory, between the client and service.
Exceptions
address
is null
.
callbackInstance
or callbackInstance
.UserObject is null
.
Applies to
CreateChannel(InstanceContext, Binding, EndpointAddress, Uri)
- Source:
- DuplexChannelFactory.cs
Creates a duplex channel between a service and a callback instance on the client.
public:
static TChannel CreateChannel(System::ServiceModel::InstanceContext ^ callbackInstance, System::ServiceModel::Channels::Binding ^ binding, System::ServiceModel::EndpointAddress ^ endpointAddress, Uri ^ via);
public static TChannel CreateChannel (System.ServiceModel.InstanceContext callbackInstance, System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress endpointAddress, Uri via);
static member CreateChannel : System.ServiceModel.InstanceContext * System.ServiceModel.Channels.Binding * System.ServiceModel.EndpointAddress * Uri -> 'Channel
Public Shared Function CreateChannel (callbackInstance As InstanceContext, binding As Binding, endpointAddress As EndpointAddress, via As Uri) As TChannel
Parameters
- callbackInstance
- InstanceContext
The InstanceContext that the client uses to listen for messages from the connected service.
- endpointAddress
- EndpointAddress
The EndpointAddress that provides the location of the service.
Returns
A channel of type TChannel
, the generic parameter for the factory, between the client and service.
Exceptions
binding
or endpointAddress
is null
.
callbackInstance
or callbackInstance
.UserObject is null
.
Applies to
.NET