private void HandleBusFailure(Exception exception)
{
if (this.IsStarted && !this.IsShuttingDown)
{
// restarting only if not already stopping/stopped
this.logger.ErrorFormat("Channel failure was detected. Trying to restart the bus instance [{0}].", exception, this.Endpoint);
this.Restart();
}
}