Class MessageValues
Inheritance
System.Object
MessageValues
Assembly: Steeltoe.Stream.StreamBase.dll
Syntax
public class MessageValues : IDictionary<string, object>
Constructors
|
Edit this page
View Source
MessageValues(IMessage)
Declaration
public MessageValues(IMessage message)
Parameters
Type |
Name |
Description |
IMessage |
message |
|
|
Edit this page
View Source
MessageValues(Object, IDictionary<String, Object>)
Declaration
public MessageValues(object payload, IDictionary<string, object> headers)
Parameters
Type |
Name |
Description |
System.Object |
payload |
|
IDictionary<System.String, System.Object> |
headers |
|
Properties
|
Edit this page
View Source
Count
Declaration
public int Count { get; }
Property Value
Type |
Description |
System.Int32 |
|
|
Edit this page
View Source
Declaration
public Dictionary<string, object> Headers { get; set; }
Property Value
Type |
Description |
Dictionary<System.String, System.Object> |
|
|
Edit this page
View Source
IsReadOnly
Declaration
public bool IsReadOnly { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Edit this page
View Source
Item[String]
Declaration
public object this[string key] { get; set; }
Parameters
Type |
Name |
Description |
System.String |
key |
|
Property Value
Type |
Description |
System.Object |
|
|
Edit this page
View Source
Keys
Declaration
public ICollection<string> Keys { get; }
Property Value
Type |
Description |
ICollection<System.String> |
|
|
Edit this page
View Source
Payload
Declaration
public object Payload { get; set; }
Property Value
Type |
Description |
System.Object |
|
|
Edit this page
View Source
Values
Declaration
public ICollection<object> Values { get; }
Property Value
Type |
Description |
ICollection<System.Object> |
|
Methods
|
Edit this page
View Source
Add(KeyValuePair<String, Object>)
Declaration
public void Add(KeyValuePair<string, object> item)
Parameters
Type |
Name |
Description |
KeyValuePair<System.String, System.Object> |
item |
|
|
Edit this page
View Source
Add(String, Object)
Declaration
public void Add(string key, object value)
Parameters
Type |
Name |
Description |
System.String |
key |
|
System.Object |
value |
|
|
Edit this page
View Source
Clear()
Declaration
|
Edit this page
View Source
Contains(KeyValuePair<String, Object>)
Declaration
public bool Contains(KeyValuePair<string, object> item)
Parameters
Type |
Name |
Description |
KeyValuePair<System.String, System.Object> |
item |
|
Returns
Type |
Description |
System.Boolean |
|
|
Edit this page
View Source
ContainsKey(String)
Declaration
public bool ContainsKey(string key)
Parameters
Type |
Name |
Description |
System.String |
key |
|
Returns
Type |
Description |
System.Boolean |
|
|
Edit this page
View Source
Declaration
public void CopyHeadersIfAbsent(IDictionary<string, object> headersToCopy)
Parameters
Type |
Name |
Description |
IDictionary<System.String, System.Object> |
headersToCopy |
|
|
Edit this page
View Source
CopyTo(KeyValuePair<String, Object>[], Int32)
Declaration
public void CopyTo(KeyValuePair<string, object>[] array, int arrayIndex)
Parameters
Type |
Name |
Description |
KeyValuePair<System.String, System.Object>[] |
array |
|
System.Int32 |
arrayIndex |
|
|
Edit this page
View Source
GetEnumerator()
Declaration
public IEnumerator<KeyValuePair<string, object>> GetEnumerator()
Returns
Type |
Description |
IEnumerator<KeyValuePair<System.String, System.Object>> |
|
|
Edit this page
View Source
Remove(KeyValuePair<String, Object>)
Declaration
public bool Remove(KeyValuePair<string, object> item)
Parameters
Type |
Name |
Description |
KeyValuePair<System.String, System.Object> |
item |
|
Returns
Type |
Description |
System.Boolean |
|
|
Edit this page
View Source
Remove(String)
Declaration
public bool Remove(string key)
Parameters
Type |
Name |
Description |
System.String |
key |
|
Returns
Type |
Description |
System.Boolean |
|
|
Edit this page
View Source
ToMessage()
Declaration
public IMessage ToMessage()
Returns
Type |
Description |
IMessage |
|
|
Edit this page
View Source
TryGetValue(String, out Object)
Declaration
public bool TryGetValue(string key, out object value)
Parameters
Type |
Name |
Description |
System.String |
key |
|
System.Object |
value |
|
Returns
Type |
Description |
System.Boolean |
|