Method CreateDurableSubscription
CreateDurableSubscription(String, SubscriptionPolicy, MessageReceivedCallback, Nullable<TimeSpan>, DeliveryMode)
Creates a Durable subscription
Declaration
IDurableTopicSubscription CreateDurableSubscription(string subscriptionName, SubscriptionPolicy subscriptionPolicy, MessageReceivedCallback messageReceivedCallback, TimeSpan? timespan = default(TimeSpan? ), DeliveryMode deliveryMode = DeliveryMode.Sync)
Parameters
Type | Name | Description |
---|---|---|
System.String | subscriptionName | Durable Subscription Name |
SubscriptionPolicy | subscriptionPolicy | Policy that is subscription is Shared or Exclusive |
MessageReceivedCallback | messageReceivedCallback | Message is delivered through this callback |
System.Nullable<System.TimeSpan> | timespan | An optional paramater that determines the expiration time. |
DeliveryMode | deliveryMode | An optional parameter which specifies whether to deliver messages to register subscribers synchronously or asynchronously.Default value of this parameter is Sync |
Returns
Type | Description |
---|---|
IDurableTopicSubscription | Alachisoft.NCache.Runtime.Caching.IDurableTopicSubscription definition of the subscription created |