public override void LogProgress(ILogger logger, LogLevel level) { //output the Redis stats base.LogProgress(logger, level); //output the hosted mapper stats _hostedSwapper.LogProgress(logger, level); }
public override void Stop(string reason) { if (_consumerId != Guid.Empty) { RabbitMqAdapter.StopConsumer(_consumerId, Smi.Common.RabbitMqAdapter.DefaultOperationTimeout); } try { // Wait for any unconfirmed messages before calling stop _producerModel.WaitForConfirms(); } catch (AlreadyClosedException) { } _swapper?.LogProgress(Logger, LogLevel.Info); base.Stop(reason); }