Amqp.Link.SendAttach C# (CSharp) Method

SendAttach() private method

private SendAttach ( bool role, uint initialDeliveryCount, Amqp.Framing.Attach attach ) : void
role bool
initialDeliveryCount uint
attach Amqp.Framing.Attach
return void
        internal void SendAttach(bool role, uint initialDeliveryCount, Attach attach)
        {
            Fx.Assert(this.state == LinkState.Start, "state must be Start");
            this.state = LinkState.AttachSent;
            attach.LinkName = this.name;
            attach.Handle = this.handle;
            attach.Role = role;
            if (!role)
            {
                attach.InitialDeliveryCount = initialDeliveryCount;
            }

            this.session.SendCommand(attach);
        }