Пример #1
0
        public override async Task StopAsync(CancellationToken cancellationToken)
        {
            _logger.LogInformation("Agent center service is stopping");
            _consumer?.Close();

            await base.StopAsync(cancellationToken);

            _logger.LogInformation("Agent center service stopped");
        }
Пример #2
0
        public override async Task StopAsync(CancellationToken cancellationToken)
        {
            _consumer?.Close();
            _services.MessageQueue.CloseQueue(SpiderId.Id);

            await base.StopAsync(cancellationToken);

            Dispose();

            Logger.LogInformation($"{SpiderId} stopped");
        }
Пример #3
0
        public override async Task StopAsync(CancellationToken cancellationToken)
        {
            Logger.LogInformation($"{Id}, {Name} stopping");
            _consumer?.Close();

            await base.StopAsync(cancellationToken);

            foreach (var dataFlow in _dataFlows)
            {
                dataFlow.Dispose();
            }

            Logger.LogInformation($"{Id}, {Name} stopped");
        }
Пример #4
0
        public override async Task StopAsync(CancellationToken cancellationToken)
        {
            Logger.LogInformation($"{Id} stopping");
            _consumer?.Close();

            await base.StopAsync(cancellationToken);

            foreach (var dataFlow in _dataFlows)
            {
                dataFlow.Dispose();
            }

            _services.MessageQueue.CloseQueue(Id);
            Logger.LogInformation($"{Id} stopped");
        }