ReliableSessionBindingElement Class
Represents the binding element that can produce the sending and receiving channels required for a reliable session between endpoints.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
System.ServiceModel.Channels::BindingElement
System.ServiceModel.Channels::ReliableSessionBindingElement
| Name | Description | |
|---|---|---|
![]() | ReliableSessionBindingElement() | Initializes a new instance of the ReliableSessionBindingElement class. |
![]() | ReliableSessionBindingElement(Boolean) | Initializes a new instance of the ReliableSessionBindingElement class that specifies whether message delivery must preserve the order in which messages are sent. |
| Name | Description | |
|---|---|---|
![]() | AcknowledgementInterval | Gets or sets the interval of time that a destination waits before sending an acknowledgment to the message source on reliable channels that are created by the factory. |
![]() | FlowControlEnabled | Gets or sets a value that indicates whether the reliable session has flow control enabled. |
![]() | InactivityTimeout | Gets or sets an interval of time that a service remains inactive before closing. |
![]() | MaxPendingChannels | Gets or sets the largest number of channels that can be pending during the reliable session. |
![]() | MaxRetryCount | Gets or sets the maximum number of times that a message attempts to be transferred during the reliable session. |
![]() | MaxTransferWindowSize | Gets or sets the largest number of messages that can exist in either the send buffer or the receive buffer. |
![]() | Ordered | Gets or sets a value that indicates whether message delivery must preserve the order in which messages are sent. |
![]() | ReliableMessagingVersion | Gets or sets the version of WS-ReliableMessaging specified by the binding element. |
| Name | Description | |
|---|---|---|
![]() | BuildChannelFactory<TChannel>(BindingContext^) | Returns a factory that creates a channel of a specified type that supports a reliable session.(Overrides BindingElement::BuildChannelFactory<TChannel>(BindingContext^).) |
![]() | BuildChannelListener<TChannel>(BindingContext^) | Returns a listener that accepts a channel of a specified type that supports a reliable session.(Overrides BindingElement::BuildChannelListener<TChannel>(BindingContext^).) |
![]() | CanBuildChannelFactory<TChannel>(BindingContext^) | Returns a value that indicates whether the channel factory can be built for the channel and context provided that can support a reliable session.(Overrides BindingElement::CanBuildChannelFactory<TChannel>(BindingContext^).) |
![]() | CanBuildChannelListener<TChannel>(BindingContext^) | Returns a value that indicates whether the channel listener can be built for the channel and context provided that can support a reliable session.(Overrides BindingElement::CanBuildChannelListener<TChannel>(BindingContext^).) |
![]() | Clone() | Creates a copy of the current reliable session binding element.(Overrides BindingElement::Clone().) |
![]() | Equals(Object^) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetProperty<T>(BindingContext^) | Gets a property of the specified type from its binding context.(Overrides BindingElement::GetProperty<T>(BindingContext^).) |
![]() | GetType() | |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() ![]() | IPolicyExportExtension::ExportPolicy(MetadataExporter^, PolicyConversionContext^) | Maps the information contained in the reliable session binding element into the WSDL elements that enable a remote endpoint to access the service with a reliable session. |
Provides sessions and optionally provides ordered message delivery. This implemented session can cross SOAP and transport intermediaries.
Each binding element represents a processing step when sending or receiving messages. At runtime, binding elements create the channel factories and listeners that are necessary to build outgoing and incoming channel stacks required to send and receive messages. The ReliableSessionBindingElement provides an optional layer in the stack that can establish a reliable session between endpoints and configure the behavior of this session.
The ReliableSessionBindingElement is provided on the standard bindings in the following table.
Binding | Default |
|---|---|
Off | |
Off | |
On (required) |
The ReliableSessionBindingElement can be added to any custom binding. This is done using the following configuration elements.
<bindings>
<customBinding>
<binding configurationName=”ReliabilityHTTP”>
<reliableSession/>
</binding>
</customBinding>
</bindings>
The following sample code demonstrates how to use ReliableSessionBindingElement in code.
Available since 3.0
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.



