Class ValidatingDispatcher
Inheritance
System.Object
ValidatingDispatcher
Assembly: FunctionMonkey.Testing.dll
Syntax
public class ValidatingDispatcher : ICommandDispatcher
Constructors
|
Improve this Doc
View Source
ValidatingDispatcher(ICommandDispatcher, IValidator)
Declaration
public ValidatingDispatcher(ICommandDispatcher underlyingDispatcher, IValidator validator)
Parameters
| Type |
Name |
Description |
| ICommandDispatcher |
underlyingDispatcher |
|
| IValidator |
validator |
|
Properties
|
Improve this Doc
View Source
AssociatedExecuter
Declaration
public ICommandExecuter AssociatedExecuter { get; }
Property Value
| Type |
Description |
| ICommandExecuter |
|
Methods
|
Improve this Doc
View Source
DispatchAsync(ICommand, CancellationToken)
Declaration
public Task<CommandResult> DispatchAsync(ICommand command, CancellationToken cancellationToken = null)
Parameters
| Type |
Name |
Description |
| ICommand |
command |
|
| CancellationToken |
cancellationToken |
|
Returns
| Type |
Description |
| Task<CommandResult> |
|
|
Improve this Doc
View Source
DispatchAsync<TResult>(ICommand<TResult>, CancellationToken)
Declaration
public Task<CommandResult<TResult>> DispatchAsync<TResult>(ICommand<TResult> command, CancellationToken cancellationToken = null)
Parameters
| Type |
Name |
Description |
| ICommand<TResult> |
command |
|
| CancellationToken |
cancellationToken |
|
Returns
| Type |
Description |
| Task<CommandResult<TResult>> |
|
Type Parameters
Extension Methods