Export (0) Print
Expand All

DuplexClientBase(Of TChannel) Class

Provides the base implementation from which Silverlight 5 client objects can call duplex services.

System.Object
  System.ServiceModel.ClientBase(Of TChannel)
    System.ServiceModel.DuplexClientBase(Of TChannel)

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

'Declaration
Public MustInherit Class DuplexClientBase(Of TChannel As Class) _
	Inherits ClientBase(Of TChannel)

Type Parameters

TChannel

The type of the channel to be created.

The DuplexClientBase(Of TChannel) type exposes the following members.

  NameDescription
Protected methodDuplexClientBase(Of TChannel)(InstanceContext)Initializes a new instance of the DuplexClientBase(Of TChannel) class using the specified callback object.
Protected methodDuplexClientBase(Of TChannel)(InstanceContext, String)Initializes a new instance of the DuplexClientBase(Of TChannel) class using the specified callback object and configuration name.
Protected methodDuplexClientBase(Of TChannel)(InstanceContext, Binding, EndpointAddress)Initializes a new instance of the DuplexClientBase(Of TChannel) class using the specified callback object, binding, and service endpoint address.
Protected methodDuplexClientBase(Of TChannel)(InstanceContext, String, EndpointAddress)Initializes a new instance of the DuplexClientBase(Of TChannel) class using the specified callback object, configuration name, and service endpoint address.
Protected methodDuplexClientBase(Of TChannel)(InstanceContext, String, String)Initializes a new instance of the DuplexClientBase(Of TChannel) class using the specified callback object, configuration name, and service endpoint address.
Top

  NameDescription
Protected propertyChannelGets the inner channel used to communicate with the service. (Inherited from ClientBase(Of TChannel).)
Public propertyChannelFactoryGets the underlying ChannelFactory(Of TChannel) object. (Inherited from ClientBase(Of TChannel).)
Public propertyClientCredentialsGets the client credentials used to call an operation. (Inherited from ClientBase(Of TChannel).)
Public propertyEndpointGets the target endpoint for the service to which the Silverlight 5 client can connect. (Inherited from ClientBase(Of TChannel).)
Public propertyInnerChannelGets the underlying IClientChannel implementation. (Inherited from ClientBase(Of TChannel).)
Public propertyStateGets the current state of the ClientBase(Of TChannel) object. (Inherited from ClientBase(Of TChannel).)
Top

  NameDescription
Public methodAbortCauses the ClientBase(Of TChannel) object to transition immediately from its current state into the closed state. (Inherited from ClientBase(Of TChannel).)
Protected methodCreateChannelReturns a channel to the service associated with the callback object passed to the constructor. (Overrides ClientBase(Of TChannel).CreateChannel.)
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Protected methodGetDefaultValueForInitialization(Of T)Replicates the behavior of the default keyword in C#. (Inherited from ClientBase(Of TChannel).)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodInvokeAsyncProvides support for implementing the event-based asynchronous pattern. For more information about
this pattern, see Event-based Asynchronous Pattern Overview.
(Inherited from ClientBase(Of TChannel).)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Explicit interface implemetationPrivate methodICommunicationObject.BeginClose(AsyncCallback, Object)Begins an asynchronous operation to close the ClientBase(Of TChannel). (Inherited from ClientBase(Of TChannel).)
Explicit interface implemetationPrivate methodICommunicationObject.BeginClose(TimeSpan, AsyncCallback, Object)Begins an asynchronous operation to close the ClientBase(Of TChannel) with a specified time-out. (Inherited from ClientBase(Of TChannel).)
Explicit interface implemetationPrivate methodICommunicationObject.BeginOpen(AsyncCallback, Object)Begins an asynchronous operation to open the ClientBase(Of TChannel) object. (Inherited from ClientBase(Of TChannel).)
Explicit interface implemetationPrivate methodICommunicationObject.BeginOpen(TimeSpan, AsyncCallback, Object)Begins an asynchronous operation to open the ClientBase(Of TChannel) object within a specified interval of time. (Inherited from ClientBase(Of TChannel).)
Explicit interface implemetationPrivate methodICommunicationObject.CloseCauses the ClientBase(Of TChannel) object to transition from its current state into the closed state. (Inherited from ClientBase(Of TChannel).)
Explicit interface implemetationPrivate methodICommunicationObject.Close(TimeSpan)Causes the ClientBase(Of TChannel) object to transition from its current state into the closed state. (Inherited from ClientBase(Of TChannel).)
Explicit interface implemetationPrivate eventICommunicationObject.ClosedThe event handler that is invoked when the ClientBase(Of TChannel) object has transitioned from its current state to the closed state. (Inherited from ClientBase(Of TChannel).)
Explicit interface implemetationPrivate eventICommunicationObject.ClosingThe event handler that is invoked when the ClientBase(Of TChannel) object transitions from its current state to the closed state. (Inherited from ClientBase(Of TChannel).)
Explicit interface implemetationPrivate methodICommunicationObject.EndCloseCompletes an asynchronous operation to close the ClientBase(Of TChannel) object. (Inherited from ClientBase(Of TChannel).)
Explicit interface implemetationPrivate methodICommunicationObject.EndOpenCompletes an asynchronous operation to open the ClientBase(Of TChannel) object. (Inherited from ClientBase(Of TChannel).)
Explicit interface implemetationPrivate eventICommunicationObject.FaultedThe event handler that is invoked when a fault occurs while performing an operation on the ClientBase(Of TChannel) object. (Inherited from ClientBase(Of TChannel).)
Explicit interface implemetationPrivate methodICommunicationObject.OpenCauses the ClientBase(Of TChannel) object to transition from the created state into the opened state. (Inherited from ClientBase(Of TChannel).)
Explicit interface implemetationPrivate methodICommunicationObject.Open(TimeSpan)Causes the ClientBase(Of TChannel) object to transition from the created state into the opened state within a specified interval of time. (Inherited from ClientBase(Of TChannel).)
Explicit interface implemetationPrivate eventICommunicationObject.OpenedThe event handler that is invoked when the ClientBase(Of TChannel) object has transitioned from the created state to the opened state. (Inherited from ClientBase(Of TChannel).)
Explicit interface implemetationPrivate eventICommunicationObject.OpeningThe event handler that is invoked when the ClientBase(Of TChannel) object transitions from the created state to the opened state. (Inherited from ClientBase(Of TChannel).)
Top

Extend the DuplexClientBase(Of TChannel) class to create a Silverlight 5 client object (proxy) that can be used to connect to a duplex service. Duplex communication between a client and service is governed by a message exchange contract in which either endpoint can send messages to the other independently. A callback object is used to enable the service to set up this bidirectional communication.

Silverlight

Supported in: 5, 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

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

Community Additions

ADD
Show:
© 2014 Microsoft