Interface IMessageHeaders
The headers for a message
public interface IMessageHeaders : IDictionary, ICollection, IDictionary<string, object>, ICollection<KeyValuePair<string, object>>, IEnumerable<KeyValuePair<string, object>>, IEnumerable
- Inherited Members
Properties
Count
int Count { get; }
Property Value
ErrorChannel
Gets the error channel the message is for
object ErrorChannel { get; }
Property Value
Id
Gets the ID header value
string Id { get; }
Property Value
Keys
ICollection<string> Keys { get; }
Property Value
ReplyChannel
Gets the reply channel the message is for
object ReplyChannel { get; }
Property Value
Timestamp
Gets the timestamp header value
long? Timestamp { get; }
Property Value
- long?
Values
ICollection<object> Values { get; }
Property Value
Methods
GetEnumerator()
IEnumerator<KeyValuePair<string, object>> GetEnumerator()
Returns
Get<T>(string)
Gets a header value given its key
T Get<T>(string key)
Parameters
key
stringthe name of the header
Returns
- T
the value or null if not found
Type Parameters
T
the type of the value returned