Export (0) Print
Expand All

ConfigurationDuplexChannelFactory<TChannel> Class

Provides the functionality to create and manage duplex channels of different types that are used to send and receive messages to and from service endpoints.

System.Object
  System.ServiceModel.Channels.CommunicationObject
    System.ServiceModel.ChannelFactory
      System.ServiceModel.ChannelFactory<TChannel>
        System.ServiceModel.DuplexChannelFactory<TChannel>
          System.ServiceModel.Configuration.ConfigurationDuplexChannelFactory<TChannel>

Namespace:  System.ServiceModel.Configuration
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public sealed class ConfigurationDuplexChannelFactory<TChannel> : DuplexChannelFactory<TChannel>

Type Parameters

TChannel

The type of communications channel for the endpoint element that is created.

The ConfigurationDuplexChannelFactory<TChannel> type exposes the following members.

  NameDescription
Public methodConfigurationDuplexChannelFactory<TChannel>Creates a new instance of the ConfigurationDuplexChannelFactory<TChannel> class with the specified callback object, endpoint configuration name, remote address, and configuration settings.
Top

  NameDescription
Public propertyCredentialsGets the credentials used by clients to communicate a service endpoint over the channels produced by the factory. (Inherited from ChannelFactory.)
Public propertyEndpointGets the service endpoint to which the channels produced by the factory connect. (Inherited from ChannelFactory.)
Public propertyStateGets a value that indicates the current state of the communication object. (Inherited from CommunicationObject.)
Top

  NameDescription
Public methodAbortCauses a communication object to transition immediately from its current state into the closing state. (Inherited from CommunicationObject.)
Public methodBeginClose(AsyncCallback, Object)Begins an asynchronous operation to close a communication object. (Inherited from CommunicationObject.)
Public methodBeginClose(TimeSpan, AsyncCallback, Object)Begins an asynchronous operation to close a communication object with a specified timeout. (Inherited from CommunicationObject.)
Public methodBeginOpen(AsyncCallback, Object)Begins an asynchronous operation to open a communication object. (Inherited from CommunicationObject.)
Public methodBeginOpen(TimeSpan, AsyncCallback, Object)Begins an asynchronous operation to open a communication object within a specified interval of time. (Inherited from CommunicationObject.)
Public methodClose()Causes a communication object to transition from its current state into the closed state. (Inherited from CommunicationObject.)
Public methodClose(TimeSpan)Causes a communication object to transition from its current state into the closed state within a specified interval of time. (Inherited from CommunicationObject.)
Public methodCreateChannel()Creates a channel of a specified type to a specified endpoint address. (Inherited from ChannelFactory<TChannel>.)
Public methodCreateChannel(EndpointAddress)Creates a channel that is used to send messages to a service at a specific endpoint address. (Inherited from ChannelFactory<TChannel>.)
Public methodCreateChannel(InstanceContext)Creates a duplex channel between a service and a callback instance on the client. (Inherited from DuplexChannelFactory<TChannel>.)
Public methodCreateChannel(EndpointAddress, Uri)Creates a duplex channel between a service and a callback instance on the client. (Inherited from DuplexChannelFactory<TChannel>.)
Public methodCreateChannel(InstanceContext, EndpointAddress)Creates a duplex channel between a service and a callback instance on the client. (Inherited from DuplexChannelFactory<TChannel>.)
Public methodCreateChannel(InstanceContext, EndpointAddress, Uri)Creates a duplex channel between a service and a callback instance on the client. (Inherited from DuplexChannelFactory<TChannel>.)
Public methodCreateChannelWithActAsToken(SecurityToken)Creates a channel that is used to send messages to a service with an act as security token. (Inherited from ChannelFactory<TChannel>.)
Public methodCreateChannelWithActAsToken(SecurityToken, EndpointAddress)Creates a channel that is used to send messages to a service with an act as security token at a specific endpoint address. (Inherited from ChannelFactory<TChannel>.)
Public methodCreateChannelWithActAsToken(SecurityToken, EndpointAddress, Uri)Creates a channel that is used to send messages to a service with an act as security token at a specific endpoint address through a specified transport address. (Inherited from ChannelFactory<TChannel>.)
Public methodCreateChannelWithIssuedToken(SecurityToken)Creates a channel that is used to send messages to a service with an issued security token. (Inherited from ChannelFactory<TChannel>.)
Public methodCreateChannelWithIssuedToken(SecurityToken, EndpointAddress)Creates a channel that is used to send messages to a service with an issued security token at a specific endpoint address. (Inherited from ChannelFactory<TChannel>.)
Public methodCreateChannelWithIssuedToken(SecurityToken, EndpointAddress, Uri)Creates a channel that is used to send messages to a service with an issued security token at a specific endpoint address through a specified transport address. (Inherited from ChannelFactory<TChannel>.)
Public methodCreateChannelWithOnBehalfOfToken(SecurityToken)Creates a channel that is used to send messages to a service with an on behalf of security token. (Inherited from ChannelFactory<TChannel>.)
Public methodCreateChannelWithOnBehalfOfToken(SecurityToken, EndpointAddress)Creates a channel that is used to send messages to a service with an on behalf of security token at a specific endpoint address. (Inherited from ChannelFactory<TChannel>.)
Public methodCreateChannelWithOnBehalfOfToken(SecurityToken, EndpointAddress, Uri)Creates a channel that is used to send messages to a service with an on behalf of security token at a specific endpoint address through a specified transport address. (Inherited from ChannelFactory<TChannel>.)
Public methodEndCloseCompletes an asynchronous operation to close a communication object. (Inherited from CommunicationObject.)
Public methodEndOpenCompletes an asynchronous operation to open a communication object. (Inherited from CommunicationObject.)
Protected methodEnsureOpenedOpens the current channel factory if it is not yet opened. (Inherited from ChannelFactory.)
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetProperty<T>Returns the typed object requested, if present, from the appropriate layer in the channel stack, or null if not present. (Inherited from ChannelFactory.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodOpen()Causes a communication object to transition from the created state into the opened state. (Inherited from CommunicationObject.)
Public methodOpen(TimeSpan)Causes a communication object to transition from the created state into the opened state within a specified interval of time. (Inherited from CommunicationObject.)
Protected methodThrowIfDisposedThrows an exception if the communication object is disposed. (Inherited from CommunicationObject.)
Protected methodThrowIfDisposedOrImmutableThrows an exception if the communication object the State property is not set to the Created state. (Inherited from CommunicationObject.)
Protected methodThrowIfDisposedOrNotOpenThrows an exception if the communication object is not in the Opened state. (Inherited from CommunicationObject.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public eventClosedOccurs when a communication object transitions into the closed state. (Inherited from CommunicationObject.)
Public eventClosingOccurs when a communication object transitions into the closing state. (Inherited from CommunicationObject.)
Public eventFaultedOccurs when a communication object transitions into the faulted state. (Inherited from CommunicationObject.)
Public eventOpenedOccurs when a communication object transitions into the opened state. (Inherited from CommunicationObject.)
Public eventOpeningOccurs when a communication object transitions into the opening state. (Inherited from CommunicationObject.)
Top

  NameDescription
Explicit interface implemetationPrivate methodIDisposable.DisposeCloses the current channel factory. (Inherited from ChannelFactory.)
Top

.NET Framework

Supported in: 4.5, 4

.NET Framework Client Profile

Supported in: 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft