Exemple #1
0
        private IBackgroundTask RegisterKeepAlive(IKeepAliveSection keepAliveSection)
        {
            // ping/keepalive
            // on all servers
            var task = new KeepAlive(_keepAliveRunner, DefaultDelayMilliseconds, FiveMinuteMilliseconds, _runtime, keepAliveSection, _logger);

            _keepAliveRunner.TryAdd(task);
            return(task);
        }
Exemple #2
0
        private IBackgroundTask RegisterKeepAlive()
        {
            // ping/keepalive
            // on all servers
            var task = new KeepAlive(_keepAliveRunner, 60000, 300000, _runtime, _logger);

            _keepAliveRunner.TryAdd(task);
            return(task);
        }