Table of Contents

Interface IMessageHeaders

Namespace
Steeltoe.Messaging
Assembly
Steeltoe.Messaging.Abstractions.dll

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

int

ErrorChannel

Gets the error channel the message is for

object ErrorChannel { get; }

Property Value

object

Id

Gets the ID header value

string Id { get; }

Property Value

string

Keys

ICollection<string> Keys { get; }

Property Value

ICollection<string>

ReplyChannel

Gets the reply channel the message is for

object ReplyChannel { get; }

Property Value

object

Timestamp

Gets the timestamp header value

long? Timestamp { get; }

Property Value

long?

Values

ICollection<object> Values { get; }

Property Value

ICollection<object>

Methods

GetEnumerator()

IEnumerator<KeyValuePair<string, object>> GetEnumerator()

Returns

IEnumerator<KeyValuePair<string, object>>

Get<T>(string)

Gets a header value given its key

T Get<T>(string key)

Parameters

key string

the name of the header

Returns

T

the value or null if not found

Type Parameters

T

the type of the value returned