コード例 #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
ファイル: AttachContext.cs プロジェクト: vackup/smartcoffee
 /// <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);
 }