Link GetLink(uint remoteHandle)
{
lock (this.ThisLock)
{
Link link = null;
if (remoteHandle < this.remoteLinks.Length)
{
link = this.remoteLinks[remoteHandle];
}
if (link == null)
{
throw new AmqpException(ErrorCode.NotFound,
Fx.Format(SRAmqp.AmqpHandleNotFound, remoteHandle, this.channel));
}
return link;
}
}