Class MetadataCollectionExtensions
Extension methods for accessing collection metadata from Properties.
public static class MetadataCollectionExtensions
- Inheritance
-
MetadataCollectionExtensions
- Inherited Members
Remarks
The Attributes and Items dictionaries were previously on the IMessageMetadata interface alongside Properties and Headers. They are now stored inside the Properties dictionary itself.
Methods
GetAttributes(IMessageMetadata)
Gets the collection of message attributes.
public static IReadOnlyDictionary<string, object> GetAttributes(this IMessageMetadata metadata)
Parameters
metadataIMessageMetadataThe message metadata.
Returns
- IReadOnlyDictionary<string, object>
The attributes dictionary, or an empty dictionary if not set.
GetItems(IMessageMetadata)
Gets the collection of items for pipeline processing.
public static IReadOnlyDictionary<string, object> GetItems(this IMessageMetadata metadata)
Parameters
metadataIMessageMetadataThe message metadata.
Returns
- IReadOnlyDictionary<string, object>
The items dictionary, or an empty dictionary if not set.