Skip to content

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)
{
// ...
}
}
actionAction<TDovetail>The action to run against each matching TDovetail joint.
Add an asynchronous convention
public class DovetailExecutor
{
public DovetailExecutor AddHandler<TDovetail>(
Func<TDovetail, ValueTask> action)
{
// ...
}
}
actionFunc<TDovetail, ValueTask>The asynchronous action to run against each matching TDovetail joint.
Add an asynchronous convention
public class DovetailExecutor
{
public DovetailExecutor AddHandler<TDovetail>(
Func<TDovetail, CancellationToken, ValueTask> action)
{
// ...
}
}
actionFunc<TDovetail, CancellationToken, ValueTask>The asynchronous, cancellable action to run against each matching TDovetail joint.
Run all the conventions
public class DovetailExecutor
{
public void Execute()
{
// ...
}
}
ExecuteAsync(CancellationToken)Section titled ExecuteAsync(CancellationToken)ValueTask
Run all the conventions
public class DovetailExecutor
{
public ValueTask ExecuteAsync(
CancellationToken cancellationToken)
{
// ...
}
}
cancellationTokenCancellationTokenThe cancellation token used while executing the conventions.
ValueTaskA Tasks.ValueTask representing the asynchronous execution of the conventions.
Run all the conventions
public class DovetailExecutor
{
public IDovetailContext ExecuteWithContext()
{
// ...
}
}
IDovetailContextThe 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)
{
// ...
}
}
cancellationTokenCancellationTokenThe cancellation token used while executing the conventions.
ValueTask<IDovetailContext>A Tasks.ValueTask`1 producing the context the conventions were executed against.