Interface ICommandProtectedDecisionSupport
- Namespace
- Cratis.Arc.Commands
- Assembly
- Cratis.Arc.Core.dll
Provider support required by protected commands, including supplied-provider pipeline calls.
public interface ICommandProtectedDecisionSupport
- Extension Methods
Methods
BeginMethodBody(MethodInfo)
Opens a provider-specific allowance for an annotated method body, after its parameters have been resolved.
IDisposable? BeginMethodBody(MethodInfo method)
Parameters
methodMethodInfoThe method being invoked.
Returns
- IDisposable
The allowance to dispose after awaiting the method, or null.
EnsureSupported(IServiceProvider)
Refuses a provider that cannot supply command-aware protected reads.
void EnsureSupported(IServiceProvider services)
Parameters
servicesIServiceProviderThe command's service provider.
ValidateCommandDependency(Type, object?)
Refuses a directly injected command decision token or reader not issued by this invocation.
void ValidateCommandDependency(Type dependencyType, object? dependency)