Definition
Assembly: CloudNimble.SimpleMessageBus.Core.dll Namespace: CloudNimble.SimpleMessageBus.CoreSyntax
Summary
Defines a message that supports metadata for passing data between handlers in the processing pipeline.Remarks
Metadata provides a way to attach additional context and data to messages without modifying the core message structure. This is particularly useful for cross-cutting concerns like tracking, auditing, user context, and handler-to-handler communication. The metadata survives serialization and can be accessed by any handler in the processing chain.Examples
Properties
Metadata Abstract
Gets or sets the thread-safe metadata storage for passing data between handlers in the processing pipeline.Syntax
Property Value
Type:System.Collections.Concurrent.ConcurrentDictionary<string, object>
A ConcurrentDictionary`2 where keys are string identifiers and values are objects
containing the metadata. The dictionary must be thread-safe as it may be accessed concurrently.