Class AmqpVersion
Represents a version of the AMQP specification.
Inheritance
Inherited Members
Namespace: RabbitMQ.Client
Assembly: RabbitMQ.Client.WinRT.dll
Syntax
public class AmqpVersion
Remarks
Vendor-specific variants of particular official specification versions exist: this class simply represents the AMQP specification version, and does not try to represent information about any custom variations involved.
AMQP version 0-8 peers sometimes advertise themselves as version 8-0: for this reason, this class's constructor special-cases 8-0, rewriting it at construction time to be 0-8 instead.
Constructors
| Improve this Doc View SourceAmqpVersion(Int32, Int32)
Construct an AmqpVersion from major and minor version numbers.
Declaration
public AmqpVersion(int major, int minor)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | major | |
System.Int32 | minor |
Remarks
Converts major=8 and minor=0 into major=0 and minor=8. Please see the class comment.
Properties
| Improve this Doc View SourceMajor
The AMQP specification major version number.
Declaration
public int Major { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Minor
The AMQP specification minor version number.
Declaration
public int Minor { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceEquals(Object)
Implement value-equality comparison.
Declaration
public override bool Equals(object other)
Parameters
Type | Name | Description |
---|---|---|
System.Object | other |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
GetHashCode()
Implement hashing as for value-equality.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
ToString()
Format appropriately for display.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
Remarks
The specification currently uses "MAJOR-MINOR" as a display format.