CurrentSubscriptions property

Iterable<StreamingSubscription> get CurrentSubscriptions
Initializes a new instance of the The ExchangeService instance this connection uses to connect to the server. The streaming subscriptions this connection is receiving events for. The maximum time, in minutes, the connection will remain open. Lifetime must be between 1 and 30. Getting the current subscriptions in this connection.

Implementation

// StreamingSubscriptionConnection.withLifetime(
//            ExchangeService service,
//            Iterable<StreamingSubscription> subscriptions,
//            int lifetime) :
//            this(service, lifetime)
//        {
//            EwsUtilities.ValidateParamCollection(subscriptions, "subscriptions");
//
//            for (StreamingSubscription subscription in subscriptions)
//            {
//                this.subscriptions[subscription.Id] = subscription;
//            }
//        }

/// <summary>
/// Getting the current subscriptions in this connection.
/// </summary>
Iterable<StreamingSubscription> get CurrentSubscriptions {
  List<StreamingSubscription> result = <StreamingSubscription>[];

  result.addAll(this._subscriptions.values);

  return result;
}