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;
}