public RabbitChannel(RabbitBus bus, IModel native)
{
this.bus = bus;
this.Native = native;
Logger.TraceFormat("Channel is opened.");
this.Native.ModelShutdown += (model, reason) =>
{
this.isClosed = true;
Logger.TraceFormat("Channel is closed due to \"{0}\".", reason.ToString());
};
}