Пример #1
0
 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.linkEndpoint = linkEndpoint;
 }
Пример #2
0
 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;
 }
Пример #3
0
 /// <summary>
 /// Completes the processing of the attach performative with success.
 /// </summary>
 /// <param name="linkEndpoint">The attached link endpoint.</param>
 /// <param name="initialCredit">The initial credit to send to peer for a receiving link endpoint. It is ignored for a sending endpoint.</param>
 public void Complete(LinkEndpoint linkEndpoint, int initialCredit)
 {
     this.Link.InitializeLinkEndpoint(linkEndpoint, (uint)initialCredit);
     this.Link.CompleteAttach(this.Attach, null);
 }
Пример #4
0
 /// <summary>
 /// Completes the processing of the attach performative with success.
 /// </summary>
 /// <param name="linkEndpoint">The attached link endpoint.</param>
 /// <param name="initialCredit">The initial credit to send to peer for a receiving link endpoint. It is ignored for a sending endpoint.</param>
 public void Complete(LinkEndpoint linkEndpoint, int initialCredit)
 {
     this.Link.InitializeLinkEndpoint(linkEndpoint, (uint)initialCredit);
     this.Link.CompleteAttach(this.Attach, null);
 }