Class FunctionWrapperCommandDispatchContextEnricher
Utility class that wraps a function as a command dispatch context enricher
Inheritance
System.Object
FunctionWrapperCommandDispatchContextEnricher
Implements
Namespace: AzureFromTheTrenches.Commanding
Assembly: AzureFromTheTrenches.Commanding.dll
Syntax
public class FunctionWrapperCommandDispatchContextEnricher : object, ICommandDispatchContextEnricher
Constructors
| Improve this Doc View SourceFunctionWrapperCommandDispatchContextEnricher(Func<IReadOnlyDictionary<String, Object>, IReadOnlyDictionary<String, Object>>)
Constructor
Declaration
public FunctionWrapperCommandDispatchContextEnricher(Func<IReadOnlyDictionary<string, object>, IReadOnlyDictionary<string, object>> func)
Parameters
Type | Name | Description |
---|---|---|
Func<IReadOnlyDictionary<System.String, System.Object>, IReadOnlyDictionary<System.String, System.Object>> | func | The function to wrap |
Methods
| Improve this Doc View SourceGetAdditionalProperties(IReadOnlyDictionary<String, Object>)
Declaration
public IReadOnlyDictionary<string, object> GetAdditionalProperties(IReadOnlyDictionary<string, object> existingEnrichmentProperties)
Parameters
Type | Name | Description |
---|---|---|
IReadOnlyDictionary<System.String, System.Object> | existingEnrichmentProperties |
Returns
Type | Description |
---|---|
IReadOnlyDictionary<System.String, System.Object> |