Class CatchActivityBinder<TInstance, TException>
- Namespace
- Automatonymous.Binders
- Assembly
- Automatonymous.dll
Creates a compensation activity with the compensation behavior
public class CatchActivityBinder<TInstance, TException> : ActivityBinder<TInstance> where TInstance : class where TException : Exception
Type Parameters
TInstance
TException
- Inheritance
-
CatchActivityBinder<TInstance, TException>
- Implements
-
ActivityBinder<TInstance>
- Inherited Members
Constructors
CatchActivityBinder(Event, EventActivities<TInstance>)
public CatchActivityBinder(Event @event, EventActivities<TInstance> activities)
Parameters
event
Eventactivities
EventActivities<TInstance>
Methods
Bind(BehaviorBuilder<TInstance>)
Bind the activities to the builder
public void Bind(BehaviorBuilder<TInstance> builder)
Parameters
builder
BehaviorBuilder<TInstance>
Bind(State<TInstance>)
Binds the activity to the state, may also just ignore the event if it's an ignore event
public void Bind(State<TInstance> state)
Parameters
state
State<TInstance>
IsStateTransitionEvent(State)
Returns True if the event is a state transition event (enter/leave/afterLeave/beforeEnter) for the specified state.
public bool IsStateTransitionEvent(State state)
Parameters
state
State