10.26.0

ISessionUnsubscribe(ITopicEndpoint, Object) Method

Unsubscribes from a durable Topic Endpoint. This is only valid if no clients are bound to the topic endpoint.

Definition

Namespace: SolaceSystems.Solclient.Messaging
Assembly: SolaceSystems.Solclient.Messaging (in SolaceSystems.Solclient.Messaging.dll) Version: 10.26.0
C#
ReturnCode Unsubscribe(
	ITopicEndpoint dte,
	Object correlationKey
)

Parameters

dte  ITopicEndpoint
The durable Topic Endpoint to unsubscribe from.
correlationKey  Object
An object reference that is returned in CorrelationKey session event

Return Value

ReturnCode
The return code from the unsubscribe request.

Exceptions

OperationErrorException Thrown when the operation fails. Possible sub-codes:
ObjectDisposedException Thrown when the session is already disposed (terminal state).
FatalErrorException Thrown when an unrecoverable error occurs.
ArgumentNullException Thrown if any of the required parameters is null.

See Also