Condividi tramite


DuplexClientBase<TChannel> Class

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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

Inheritance Hierarchy

System.Object
  System.ServiceModel.ClientBase<TChannel>
    System.ServiceModel.DuplexClientBase<TChannel>

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

Syntax

'Declaration
Public MustInherit Class DuplexClientBase(Of TChannel As Class) _
    Inherits ClientBase(Of TChannel)
public abstract class DuplexClientBase<TChannel> : ClientBase<TChannel>
where TChannel : class

Type Parameters

  • TChannel
    The type of the channel to be created.

The DuplexClientBase<TChannel> type exposes the following members.

Constructors

  Name Description
Protected method DuplexClientBase<TChannel>(InstanceContext) Initializes a new instance of the DuplexClientBase<TChannel> class using the specified callback object.
Protected method DuplexClientBase<TChannel>(InstanceContext, String) Initializes a new instance of the DuplexClientBase<TChannel> class using the specified callback object and configuration name.
Protected method DuplexClientBase<TChannel>(InstanceContext, Binding, EndpointAddress) Initializes a new instance of the DuplexClientBase<TChannel> class using the specified callback object, binding, and service endpoint address.
Protected method DuplexClientBase<TChannel>(InstanceContext, String, EndpointAddress) Initializes a new instance of the DuplexClientBase<TChannel> class using the specified callback object, configuration name, and service endpoint address.
Protected method DuplexClientBase<TChannel>(InstanceContext, String, String) Initializes a new instance of the DuplexClientBase<TChannel> class using the specified callback object, configuration name, and service endpoint address.

Top

Properties

  Name Description
Protected property Channel Gets the inner channel used to communicate with the service. (Inherited from ClientBase<TChannel>.)
Public property ChannelFactory Gets the underlying ChannelFactory<TChannel> object. (Inherited from ClientBase<TChannel>.)
Public property ClientCredentials Gets the client credentials used to call an operation. (Inherited from ClientBase<TChannel>.)
Public property Endpoint Gets the target endpoint for the service to which the Silverlight 5 client can connect. (Inherited from ClientBase<TChannel>.)
Public property InnerChannel Gets the underlying IClientChannel implementation. (Inherited from ClientBase<TChannel>.)
Public property State Gets the current state of the ClientBase<TChannel> object. (Inherited from ClientBase<TChannel>.)

Top

Methods

  Name Description
Public method Abort Causes the ClientBase<TChannel> object to transition immediately from its current state into the closed state. (Inherited from ClientBase<TChannel>.)
Protected method CreateChannel Returns a channel to the service associated with the callback object passed to the constructor. (Overrides ClientBase<TChannel>.CreateChannel().)
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Protected method GetDefaultValueForInitialization<T> Replicates the behavior of the default keyword in C#. (Inherited from ClientBase<TChannel>.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method InvokeAsync Provides support for implementing the event-based asynchronous pattern. For more information about
this pattern, see Event-based Asynchronous Pattern Overview. (Inherited from ClientBase<TChannel>.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method ICommunicationObject.BeginClose(AsyncCallback, Object) Begins an asynchronous operation to close the ClientBase<TChannel>. (Inherited from ClientBase<TChannel>.)
Explicit interface implemetationPrivate method ICommunicationObject.BeginClose(TimeSpan, AsyncCallback, Object) Begins an asynchronous operation to close the ClientBase<TChannel> with a specified time-out. (Inherited from ClientBase<TChannel>.)
Explicit interface implemetationPrivate method ICommunicationObject.BeginOpen(AsyncCallback, Object) Begins an asynchronous operation to open the ClientBase<TChannel> object. (Inherited from ClientBase<TChannel>.)
Explicit interface implemetationPrivate method ICommunicationObject.BeginOpen(TimeSpan, AsyncCallback, Object) Begins an asynchronous operation to open the ClientBase<TChannel> object within a specified interval of time. (Inherited from ClientBase<TChannel>.)
Explicit interface implemetationPrivate method ICommunicationObject.Close() Causes the ClientBase<TChannel> object to transition from its current state into the closed state. (Inherited from ClientBase<TChannel>.)
Explicit interface implemetationPrivate method ICommunicationObject.Close(TimeSpan) Causes the ClientBase<TChannel> object to transition from its current state into the closed state. (Inherited from ClientBase<TChannel>.)
Explicit interface implemetationPrivate event ICommunicationObject.Closed The event handler that is invoked when the ClientBase<TChannel> object has transitioned from its current state to the closed state. (Inherited from ClientBase<TChannel>.)
Explicit interface implemetationPrivate event ICommunicationObject.Closing The event handler that is invoked when the ClientBase<TChannel> object transitions from its current state to the closed state. (Inherited from ClientBase<TChannel>.)
Explicit interface implemetationPrivate method ICommunicationObject.EndClose Completes an asynchronous operation to close the ClientBase<TChannel> object. (Inherited from ClientBase<TChannel>.)
Explicit interface implemetationPrivate method ICommunicationObject.EndOpen Completes an asynchronous operation to open the ClientBase<TChannel> object. (Inherited from ClientBase<TChannel>.)
Explicit interface implemetationPrivate event ICommunicationObject.Faulted The event handler that is invoked when a fault occurs while performing an operation on the ClientBase<TChannel> object. (Inherited from ClientBase<TChannel>.)
Explicit interface implemetationPrivate method ICommunicationObject.Open() Causes the ClientBase<TChannel> object to transition from the created state into the opened state. (Inherited from ClientBase<TChannel>.)
Explicit interface implemetationPrivate method ICommunicationObject.Open(TimeSpan) Causes the ClientBase<TChannel> object to transition from the created state into the opened state within a specified interval of time. (Inherited from ClientBase<TChannel>.)
Explicit interface implemetationPrivate event ICommunicationObject.Opened The event handler that is invoked when the ClientBase<TChannel> object has transitioned from the created state to the opened state. (Inherited from ClientBase<TChannel>.)
Explicit interface implemetationPrivate event ICommunicationObject.Opening The event handler that is invoked when the ClientBase<TChannel> object transitions from the created state to the opened state. (Inherited from ClientBase<TChannel>.)

Top

Remarks

Extend the DuplexClientBase<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.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

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

Thread Safety

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

See Also

Reference