Exemple #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");
        }
Exemple #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");
        }
Exemple #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");
        }
Exemple #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");
        }