Interface IMessageHubSubscription
Represents a message subscription.
Namespace: Swan.Messaging
Syntax
public interface IMessageHubSubscription
Properties
SubscriptionToken
Token returned to the subscribed to reference this subscription.
Declaration
MessageHubSubscriptionToken SubscriptionToken { get; }
Property Value
Type | Description |
---|---|
MessageHubSubscriptionToken |
Methods
Deliver(IMessageHubMessage)
Deliver the message.
Declaration
void Deliver(IMessageHubMessage message)
Parameters
Type | Name | Description |
---|---|---|
IMessageHubMessage | message | Message to deliver. |
ShouldAttemptDelivery(IMessageHubMessage)
Whether delivery should be attempted.
Declaration
bool ShouldAttemptDelivery(IMessageHubMessage message)
Parameters
Type | Name | Description |
---|---|---|
IMessageHubMessage | message | Message that may potentially be delivered. |
Returns
Type | Description |
---|---|
Boolean |
|