Class MessageHubSubscriptionToken
Represents an active subscription to a message.
Implements
Inherited Members
Namespace: Swan.Messaging
Syntax
public sealed class MessageHubSubscriptionToken : IDisposable
Constructors
MessageHubSubscriptionToken(IMessageHub, Type)
Initializes a new instance of the MessageHubSubscriptionToken class.
Declaration
public MessageHubSubscriptionToken(IMessageHub hub, Type messageType)
Parameters
Type | Name | Description |
---|---|---|
IMessageHub | hub | The hub. |
Type | messageType | Type of the message. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | hub. |
ArgumentOutOfRangeException | messageType. |
Methods
Dispose()
Declaration
public void Dispose()