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);
}