/// <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();
 }
示例#2
0
 /// <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();
 }
示例#3
0
 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;
 }
示例#4
0
        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);
        }