Exemple #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="WebModuleBase"/> class.
        /// </summary>
        protected WebModuleBase()
        {
            Handlers = new ModuleMap();

            var watchDogTask = Task.Factory.StartNew(async() =>
            {
                RunWatchdog();
                await Task.Delay(WatchdogInterval, _cts.Token);
            }, _cts.Token);
        }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="WebModuleBase"/> class.
 /// </summary>
 protected WebModuleBase()
 {
     Handlers = new ModuleMap();
 }