internal void InitializeLinkEndpoint(LinkEndpoint linkEndpoint, uint credit)
{
ThrowIfNotNull(this.linkEndpoint, "endpoint");
ThrowIfNotNull(this.onMessage, "receiver");
ThrowIfNotNull(this.onCredit, "sender");
ThrowIfNotNull(this.onDispose, "sender");
this.credit = credit;
this.autoRestore = true;
this.linkEndpoint = linkEndpoint;
}