Adds a behavior to a stunt.
public static TStunt AddBehavior<TStunt>(this TStunt stunt, ExecuteHandler behavior, AppliesToHandler? appliesTo = null, string? name = null)
where TStunt : IStunt
The stunt to add the behavior to.
(invocation, next) => invocation.CreateValueReturn() | invocation.CreateExceptionReturn() | next().Invoke(invocation, next)
invocation => true|false
Optional friendly name for the behavior.