Proton DotNet
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | Properties | List of all members
Apache.Qpid.Proton.Engine.HeaderEnvelope Class Referencesealed

Frame object that carries an AMQP Performative. More...

Inheritance diagram for Apache.Qpid.Proton.Engine.HeaderEnvelope:
Apache.Qpid.Proton.Engine.PerformativeEnvelope< AmqpHeader >

Public Member Functions

void Invoke< T > (IHeaderHandler< T > handler, T context)
 Invoke the correct handler based on whether this header is a SASL or AMQP header instance.
 

Static Public Attributes

static readonly byte HeaderFrameType = 1
 
static readonly HeaderEnvelope SASL_HEADER_ENVELOPE = new(AmqpHeader.GetSASLHeader())
 A singleton instance of an SASL header that can be used to avoid additional allocations.
 
static readonly HeaderEnvelope AMQP_HEADER_ENVELOPE = new(AmqpHeader.GetAMQPHeader())
 A singleton instance of an AMQP header that can be used to avoid additional allocations.
 

Properties

int ProtocolId [get]
 Reads the protocol Id value from the conveyed header.
 
int Major [get]
 Reads the major version number value from the conveyed header.
 
int Minor [get]
 Reads the minor version number value from the conveyed header.
 
int Revision [get]
 Reads the revision version number value from the conveyed header.
 
bool IsSaslHeader [get]
 Returns true if the conveyed header is a SASL header.
 
- Properties inherited from Apache.Qpid.Proton.Engine.PerformativeEnvelope< AmqpHeader >
Body [get]
 Access the performative that is the body of this envelope.
 
ushort Channel [get]
 Access the channel on which the performative was received.
 
IProtonBuffer Payload [get]
 Access the payload bytes that arrived with the performative.
 
byte FrameType [get]
 Provides the frame type that defines what types of performatives can be received.
 

Detailed Description

Frame object that carries an AMQP Performative.

Member Function Documentation

◆ Invoke< T >()

void Apache.Qpid.Proton.Engine.HeaderEnvelope.Invoke< T > ( IHeaderHandler< T >  handler,
context 
)
inline

Invoke the correct handler based on whether this header is a SASL or AMQP header instance.

Template Parameters
TThe context type for the handler invocation
Parameters
handlerThe header handler to invoke
contextThe context to supply to the handler method.

The documentation for this class was generated from the following file: