PollingDuplexBindingElement Class

Silverlight

Represents the binding element that enables duplex communication between a Silverlight 5 client and a service.

System.Object
  System.ServiceModel.Channels.BindingElement
    System.ServiceModel.Channels.PollingDuplexBindingElement

Namespace:  System.ServiceModel.Channels
Assembly:  System.ServiceModel.PollingDuplex (in System.ServiceModel.PollingDuplex.dll)

public class PollingDuplexBindingElement : BindingElement

The PollingDuplexBindingElement type exposes the following members.

  NameDescription
Public methodPollingDuplexBindingElement()Initializes a new instance of the PollingDuplexBindingElement class.
Protected methodPollingDuplexBindingElement(PollingDuplexBindingElement)Initializes a new instance of the PollingDuplexBindingElement class from an existing one.
Public methodPollingDuplexBindingElement(PollingDuplexMode)Initializes a new instance of the PollingDuplexBindingElement class with a specified polling duplex mode.
Top

  NameDescription
Public propertyClientPollTimeoutThe interval of time that a client polling request has to complete before timing out.
Public propertyDuplexModeGets or sets a value that specifies how the server behaves in response to client polling when the communication is configured for duplex polling.
Public propertyInactivityTimeoutGets or sets the maximum interval of time that can pass without activity on a channel before the client channel enters a faulted state.
Public propertyMaxPendingMessagesPerSessionGets or sets the maximum number of pending messages per session.
Top

  NameDescription
Public methodBuildChannelFactory<TChannel>Creates a channel factory that can be used to create a channel. (Overrides BindingElement.BuildChannelFactory<TChannel>(BindingContext).)
Public methodCanBuildChannelFactory<TChannel>Determines whether a channel factory of the specified type can be built. (Overrides BindingElement.CanBuildChannelFactory<TChannel>(BindingContext).)
Public methodCloneCreates a copy of the current binding element. (Overrides BindingElement.Clone().)
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.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetProperty<T>Gets a property from the specified BindingContext. (Overrides BindingElement.GetProperty<T>(BindingContext).)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
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

In duplex communication, either party can initiate a message exchange. As with non-duplex communication, the client can send a request to the service and receive an optional reply. But with duplex communication, the service itself can initiate communications by sending a message to the client at any time. This is useful in applications where data must be pushed to the client when it is updated on the server.

Windows Communication Foundation (WCF) supports several types of duplex bindings. The PollingDuplexBindingElement is an element of the PollingDuplexHttpBinding that is specifically intended to establish communications with clients like Silverlight 5, where traditional duplex transport protocols like TCP are not available and where the client cannot accept new incoming connections. The PollingDuplexHttpBinding is the only duplex binding available to use with Silverlight 5 clients.

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: