GuardBehavior(Func<IMethodInvocation, Exception?>) Constructor

Definition

Namespace Stunts
Assembly Stunts.Extensions.dll

Initializes the behavior.

public GuardBehavior(Func<IMethodInvocation, Exception?> predicate)

Parameters

predicate
Func<IMethodInvocation, Exception?>

Returns an exception to fail the call, or null to continue.