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"); }
public override async Task StopAsync(CancellationToken cancellationToken) { _consumer?.Close(); _services.MessageQueue.CloseQueue(SpiderId.Id); await base.StopAsync(cancellationToken); Dispose(); Logger.LogInformation($"{SpiderId} stopped"); }
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"); }
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"); }