DovetailExecutor Methods
ClassMethods7 members
A class to help with executing conventions
Add a synchronous convention
public class DovetailExecutor{ public DovetailExecutor AddHandler<TDovetail>( Action<TDovetail> action) { // ... }}Parameters
actionAction<TDovetail> The action to run against each matching TDovetail joint.Returns
DovetailExecutor This DovetailExecutor , for chaining.AddHandler(Func<TDovetail, ValueTask>) Section titled AddHandler(Func<TDovetail, ValueTask>)Dovetail Add an asynchronous convention
public class DovetailExecutor{ public DovetailExecutor AddHandler<TDovetail>( Func<TDovetail, ValueTask> action) { // ... }}Parameters
actionFunc<TDovetail, ValueTask> The asynchronous action to run against each matching TDovetail joint.Returns
DovetailExecutor This DovetailExecutor , for chaining.AddHandler(Func<TDovetail, CancellationToken, ValueTask>) Section titled AddHandler(Func<TDovetail, CancellationToken, ValueTask>)Dovetail Add an asynchronous convention
public class DovetailExecutor{ public DovetailExecutor AddHandler<TDovetail>( Func<TDovetail, CancellationToken, ValueTask> action) { // ... }}Parameters
actionFunc<TDovetail, CancellationToken, ValueTask> The asynchronous, cancellable action to run against each matching TDovetail joint.Returns
DovetailExecutor This DovetailExecutor , for chaining.ExecuteSection titled Execute Run all the conventions
public class DovetailExecutor{ public void Execute() { // ... }} Run all the conventions
public class DovetailExecutor{ public ValueTask ExecuteAsync( CancellationToken cancellationToken) { // ... }}Parameters
cancellationToken CancellationToken The cancellation token used while executing the conventions.Returns
ValueTask A Tasks.ValueTask representing the asynchronous execution of the conventions. Run all the conventions
public class DovetailExecutor{ public IDovetailContext ExecuteWithContext() { // ... }}Returns
IDovetailContext The context the conventions were executed against.ExecuteWithContextAsync(CancellationToken) Section titled ExecuteWithContextAsync(CancellationToken)ValueTask<IDovetailContext> Run all the conventions
public class DovetailExecutor{ public ValueTask<IDovetailContext> ExecuteWithContextAsync( CancellationToken cancellationToken) { // ... }}Parameters
cancellationToken CancellationToken The cancellation token used while executing the conventions.Returns
ValueTask<IDovetailContext> A Tasks.ValueTask`1 producing the context the conventions were executed against.