/// <summary> /// Manages the connection for multiple <see cref="StreamingSubscription"/> items. Attention: Use only for subscriptions on the same CAS. /// </summary> /// <param name="exchangeService">The ExchangeService instance this collection uses to connect to the server.</param> public StreamingSubscriptionCollection(ExchangeService exchangeService, Action<SubscriptionNotificationEventCollection> EventProcessor, GroupIdentifier groupIdentifier) { this._exchangeService = exchangeService; this._EventProcessor = EventProcessor; this._groupIdentifier = groupIdentifier; _connection = CreateConnection(); }
/// <summary> /// Manages the connection for multiple <see cref="StreamingSubscription"/> items. Attention: Use only for subscriptions on the same CAS. /// </summary> /// <param name="exchangeService">The ExchangeService instance this collection uses to connect to the server.</param> public StreamingSubscriptionCollection(ExchangeService exchangeService, Action <SubscriptionNotificationEventCollection> EventProcessor, GroupIdentifier groupIdentifier) { this._exchangeService = exchangeService; this._EventProcessor = EventProcessor; this._groupIdentifier = groupIdentifier; _connection = CreateConnection(); }
private StreamingSubscriptionCollection FindOrCreateSubscriptionCollection(ExchangeService service, GroupIdentifier groupIdentifier) { var collection = _subscriptionCollections.FirstOrDefault(s => s.groupIdentifier.Value == groupIdentifier.Value) ?? new StreamingSubscriptionCollection( service, this._onNotificationEvent, groupIdentifier); return collection; }
private StreamingSubscriptionCollection FindOrCreateSubscriptionCollection(ExchangeService service, GroupIdentifier groupIdentifier) { var collection = _subscriptionCollections.FirstOrDefault(s => s.groupIdentifier.Value == groupIdentifier.Value) ?? new StreamingSubscriptionCollection( service, this._onNotificationEvent, groupIdentifier); return(collection); }