public async Task Stop()
{
if (!isStarted)
{
return;
}
try
{
await receiver.Stop().ConfigureAwait(false);
}
catch (Exception exception)
{
Logger.Warn($"Receiver {Id} listening to queue {pushSettings.InputQueue} threw an exception on stopping.", exception);
}
finally
{
isStarted = false;
}
}