Class CommandContextValuesBuilder
- Namespace
- Cratis.Arc.Commands
- Assembly
- Cratis.Arc.Core.dll
Represents an implementation of ICommandContextValuesBuilder.
public class CommandContextValuesBuilder : ICommandContextValuesBuilder
- Inheritance
-
CommandContextValuesBuilder
- Implements
- Inherited Members
- Extension Methods
Constructors
CommandContextValuesBuilder(IInstancesOf<ICommandContextValuesProvider>, ICommandKeys)
Represents an implementation of ICommandContextValuesBuilder.
public CommandContextValuesBuilder(IInstancesOf<ICommandContextValuesProvider> providers, ICommandKeys commandKeys)
Parameters
providersIInstancesOf<ICommandContextValuesProvider>The instances of ICommandContextValuesProvider to use when building the values.
commandKeysICommandKeysThe ICommandKeys to read the command's key from when no provider resolved one.
Methods
Build(object)
Creates a new instance of CommandContextValues.
public CommandContextValues Build(object command)
Parameters
commandobjectThe command instance being executed.
Returns
- CommandContextValues
A new instance of CommandContextValues.
Build(object, IServiceProvider)
Builds values without capturing identity-bound providers from the pipeline's root scope.
public CommandContextValues Build(object command, IServiceProvider services)
Parameters
commandobjectThe command.
servicesIServiceProviderThe owned execution provider.
Returns
- CommandContextValues
The context values.