Woopsa.WoopsaSubscriptionServiceImplementation.WoopsaSubscriptionServiceImplementation C# (CSharp) Method

WoopsaSubscriptionServiceImplementation() public method

public WoopsaSubscriptionServiceImplementation ( WoopsaContainer root, bool isServerSide ) : System
root WoopsaContainer
isServerSide bool
return System
        public WoopsaSubscriptionServiceImplementation(WoopsaContainer root, bool isServerSide)
        {
            _root = root;
            _isServerSide = isServerSide;
            _channels = new Dictionary<int, WoopsaSubscriptionChannel>();
            TimerScheduler = new LightWeightTimerScheduler();
            TimerScheduler.Started += (sender, e) =>
             {
                 _currentService = this;
             };
            TimerScheduler.Start();
            _timerCheckChannelTimedOut = TimerScheduler.AllocateTimer(
                WoopsaSubscriptionServiceConst.SubscriptionChannelLifeTimeCheckInterval);
            _timerCheckChannelTimedOut.Elapsed += _timerCheckChannelTimedOut_Elapsed;
            _timerCheckChannelTimedOut.IsEnabled = true;
        }