Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="WebModuleBase"/> class.
 /// </summary>
 protected WebModuleBase()
 {
     Handlers = new ModuleMap();
 }