-
Notifications
You must be signed in to change notification settings - Fork 791
Open
Description
Currently CanFire has these two overloads:
public bool CanFire(TTrigger trigger, out ICollection<string> unmetGuards);
public bool CanFire(TTrigger trigger);However it does not support triggers with parameters, is there a technical limitation for this? Is there any possibility of adding support for this? It seems strange that I can check if the trigger can be fired for "normal" triggers and get a list of unmet guards, but I can't for triggers with parameters.
As I have a few normal triggers and a few parameterised triggers, the best way I can see for how to achieve checking if it can fire now is to wrap a call to Fire with a try/catch. Not ideal if we can avoid exceptions fully if a new overload was added.
tibitoth
Metadata
Metadata
Assignees
Labels
No labels