Class AttachContext
Provides the context to an attach processor to process the received performative.
Inheritance
System.Object
AttachContext
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Amqp.Listener
Assembly: Amqp.Net.dll
Syntax
public class AttachContext
Properties
Attach
Gets the attach performative associated with the context.
Declaration
public Attach Attach { get; }
Property Value
Type | Description |
---|---|
Attach |
Link
Gets the link associated with the context.
Declaration
public ListenerLink Link { get; }
Property Value
Type | Description |
---|---|
ListenerLink |
Methods
Complete(Error)
Completes the processing of the attach performative with an error.
Declaration
public void Complete(Error error)
Parameters
Type | Name | Description |
---|---|---|
Error | error | The error to be sent to the remote peer. |
Complete(LinkEndpoint, Int32)
Completes the processing of the attach performative with success.
Declaration
public void Complete(LinkEndpoint linkEndpoint, int initialCredit)
Parameters
Type | Name | Description |
---|---|---|
LinkEndpoint | linkEndpoint | The attached link endpoint. |
System.Int32 | initialCredit | The initial credit to send to peer for a receiving link endpoint. It is ignored for a sending endpoint. |