OptionalReliableSession Class
Provides convenient access to whether a reliable session is enabled when using one of the predefined bindings where it is optional.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
| Name | Description | |
|---|---|---|
![]() | OptionalReliableSession() | Initializes a new instance of the OptionalReliableSession class. |
![]() | OptionalReliableSession(ReliableSessionBindingElement^) | Initializes a new instance of the OptionalReliableSession class from a reliable session binding element. |
| Name | Description | |
|---|---|---|
![]() | Enabled | Gets or sets a value that indicates whether the reliable session is enabled. |
![]() | InactivityTimeout | Gets or sets an interval of time that a service can remain inactive before closing.(Inherited from ReliableSession.) |
![]() | Ordered | Gets or sets a value that indicates whether message delivery must preserve the order in which messages are sent.(Inherited from ReliableSession.) |
| Name | Description | |
|---|---|---|
![]() | Equals(Object^) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | Finalize() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.) |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() | MemberwiseClone() | |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
The ability to enable a reliable session is provided with three of the system-provided bindings. A reliable session is:
Optional (and off by default) with NetTcpBinding and WSHttpBinding and
Required (and hence always on) with WSDualHttpBinding.
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.


