Method CreateDurableSubscription
CreateDurableSubscription(String, SubscriptionPolicy, MessageReceivedCallback, Nullable<TimeSpan>)
Creates a Durable subscription
Declaration
IDurableTopicSubscription CreateDurableSubscription(string subscriptionName, SubscriptionPolicy subscriptionPolicy, MessageReceivedCallback messageReceivedCallback, TimeSpan? timespan = null)
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<TimeSpan> | timespan | An optional paramater that determines the expiration time. |
Returns
Type | Description |
---|---|
IDurableTopicSubscription | Alachisoft.NCache.Runtime.Caching.IDurableTopicSubscription definition of the subscription created |