Table of Contents

Method RequestChangeSubscription

Namespace
Tooq.Tech.FH.ClientLib
Assembly
Tooq.Tech.FH.ClientLib.dll

RequestChangeSubscription(Guid, SubscriptionType, ChangeType, TimeSpan?)

Change the subscription type of a subscription. Since the subscription type is a bitwise flag, flags from the parameter subscriptionType will be added or removed to the subscription given the changeType parameter value. Be aware that invalid flag combinations will trigger an error and the subscription will not be changed.

public (bool, RequestChangeSubscriptionResponse) RequestChangeSubscription(Guid subscriptionId, SubscriptionType subscriptionType, ChangeType changeType, TimeSpan? timeout = null)

Parameters

subscriptionId Guid

The id of the subscription

subscriptionType SubscriptionType

New flag(s) that should be added or removed from the existing subscription

changeType ChangeType

The type of change to be applied to the subscription: AddFlag or RemoveFlag

timeout TimeSpan?

Time limit after which the Request will be cancelled.

Returns

(bool, RequestChangeSubscriptionResponse)

A tuple where the first element is a boolean indicating whether the call was successful or not (timeout) and the object RequestChangeSubscriptionResponse