Contour.Transport.RabbitMQ.Internal.RabbitChannel.RabbitChannel C# (CSharp) Method

RabbitChannel() public method

Инициализирует новый экземпляр класса RabbitChannel.
public RabbitChannel ( RabbitBus bus, IModel native ) : System
bus RabbitBus /// The bus. ///
native IModel /// The native. ///
return System
        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());
                };
        }