Interface ICommandDispatchContextEnricher
Allows the command dispatch context to be enriched
Namespace: AzureFromTheTrenches.Commanding.Abstractions
Assembly: AzureFromTheTrenches.Commanding.Abstractions.dll
Syntax
public interface ICommandDispatchContextEnricher
Methods
| Improve this Doc View SourceGetAdditionalProperties(IReadOnlyDictionary<String, Object>)
Get additional properties to attach to a command dispatch context. Although it's tempting to think this should be supplied a command the context wraps potentially multiple command dispatches.
Declaration
IReadOnlyDictionary<string, object> GetAdditionalProperties(IReadOnlyDictionary<string, object> existingEnrichmentProperties)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.IReadOnlyDictionary<System.String, System.Object> | existingEnrichmentProperties | The existing properties on the context applied by previous enrichers |
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IReadOnlyDictionary<System.String, System.Object> | The set of properties this enricher wants to attach |