internal WoopsaSubscriptionChannel(WoopsaSubscriptionServiceImplementation serviceImplementation, int notificationQueueSize) { _subscriptions = new Dictionary<int, BaseWoopsaSubscriptionServiceSubscription>(); _waitNotificationEvent = new AutoResetEvent(false); _waitStopEvent = new ManualResetEvent(false); ServiceImplementation = serviceImplementation; _idLock = new Object(); Id = GetNextChannelId(); NotificationQueueSize = notificationQueueSize; _pendingNotifications = new NotificationConcurrentQueue(notificationQueueSize); _watchClientActivity = new Stopwatch(); _watchClientActivity.Start(); }