Skip to main content

Class SubscriptionsContainer

Declaration
public static class SubscriptionsContainer

Properties

ActiveSubscriptions

Declaration
public static IEnumerable<string> ActiveSubscriptions { get; }

Methods

AddSubscription(string)

Records a subscription and returns true, returns false if it is already recorded

Declaration
public static bool AddSubscription(string subscriptionId)
Returns

System.Boolean: A boolean indicating whether a new record for the subscription is created

Parameters
TypeNameDescription
System.StringsubscriptionIdProduct id of the subscription to be recorded

RemoveSubscription(string)

Removes the subscription record with given id from the container and returns whether a remove operation occured

Declaration
public static bool RemoveSubscription(string subscriptionId)
Returns

System.Boolean: A boolean indicating whether a record was removed

Parameters
TypeNameDescription
System.StringsubscriptionIdProduct id of the subscription to be expired