MessageBusSubscriber UnsubscribeFromAllKeys T  Method DH.Messaging Documentation

[This is preliminary documentation and is subject to change.]

Unsubscribe this message type from all message keys

Namespace: (Default Namespace)
Assembly: DH.Messaging.Extensions (in DH.Messaging.Extensions.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public void UnsubscribeFromAllKeys<T>(
	bool destroySubscription
)

Parameters

destroySubscription
Type: OnlineSystem Boolean
If true, the subscription object will also be removed from the subscriber component
Type Parameters

T
Message type of subscription
Remarks

It is recommended to pass true if you will not be using the subscription type again soon as this will free up memory by clearing the current message queue for the subscription and remove the message queue instance from memory.
See Also