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

providers IInstancesOf<ICommandContextValuesProvider>

The instances of ICommandContextValuesProvider to use when building the values.

commandKeys ICommandKeys

The 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

command object

The 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

command object

The command.

services IServiceProvider

The owned execution provider.

Returns

CommandContextValues

The context values.