Class MessageHeader
An header added to the message being sent over a message broker.
Inheritance
System.Object
MessageHeader
Implements
System.IEquatable<MessageHeader>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Silverback.Messaging.Messages
Assembly: Silverback.Integration.dll
Syntax
public sealed class MessageHeader : IEquatable<MessageHeader>
Constructors
| Improve this doc View sourceMessageHeader(String, Object)
Initializes a new instance of the MessageHeader class.
Declaration
public MessageHeader(string name, object value)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The header name. |
System.Object | value | The header value. |
MessageHeader(String, String)
Initializes a new instance of the MessageHeader class.
Declaration
[JsonConstructor]
public MessageHeader(string name, string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The header name. |
System.String | value | The header value. |
Properties
| Improve this doc View sourceName
Gets or sets the header name.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Value
Gets or sets the header value.
Declaration
public string Value { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this doc View sourceEquals(MessageHeader)
Declaration
public bool Equals(MessageHeader other)
Parameters
Type | Name | Description |
---|---|---|
MessageHeader | other |
Returns
Type | Description |
---|---|
System.Boolean |
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
System.Object.Equals(System.Object)
|
Improve this doc
View source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
System.Object.GetHashCode()
Operators
| Improve this doc View sourceEquality(MessageHeader, MessageHeader)
Declaration
public static bool operator ==(MessageHeader left, MessageHeader right)
Parameters
Type | Name | Description |
---|---|---|
MessageHeader | left | |
MessageHeader | right |
Returns
Type | Description |
---|---|
System.Boolean |
Inequality(MessageHeader, MessageHeader)
Declaration
public static bool operator !=(MessageHeader left, MessageHeader right)
Parameters
Type | Name | Description |
---|---|---|
MessageHeader | left | |
MessageHeader | right |
Returns
Type | Description |
---|---|
System.Boolean |
Implements
System.IEquatable<T>