Log() private method

private Log ( object source, bool send, Performative command ) : void
source object
send bool
command Microsoft.Azure.Amqp.Framing.Performative
return void
Example #1
0
        /// <summary>
        /// Processes session and link frames.
        /// </summary>
        /// <param name="frame">The received frame.</param>
        public virtual void ProcessFrame(Frame frame)
        {
            Performative command = frame.Command;

            try
            {
                AmqpDebug.Log(this, false, command);

                if (command.DescriptorCode == Begin.Code)
                {
                    this.OnReceiveBegin((Begin)command);
                }
                else if (command.DescriptorCode == End.Code)
                {
                    this.OnReceiveEnd((End)command);
                }
                else if (command.DescriptorCode == Disposition.Code)
                {
                    this.OnReceiveDisposition((Disposition)command);
                }
                else if (command.DescriptorCode == Flow.Code)
                {
                    this.OnReceiveFlow((Flow)command);
                }
                else
                {
                    this.OnReceiveLinkFrame(frame);
                }
            }
            catch (Exception exception) when(!Fx.IsFatal(exception))
            {
                AmqpTrace.Provider.AmqpLogError(this, "ProcessFrame", exception);
                this.SafeClose(exception);
            }
        }
Example #2
0
 internal void SendCommand(Performative command, ByteBuffer payload)
 {
     AmqpDebug.Log(this, true, command);
     this.connection.SendCommand(command, this.LocalChannel, payload);
 }
Example #3
0
 public void SendCommand(Performative command, ArraySegment <byte>[] payload)
 {
     AmqpDebug.Log(this, true, command);
     this.connection.SendCommand(command, this.LocalChannel, payload);
 }