Class ThenExtensions
- Namespace
- Automatonymous
- Assembly
- Automatonymous.dll
public static class ThenExtensions- Inheritance
- 
      
      ThenExtensions
- Inherited Members
Methods
ExecuteAsync<TInstance>(EventActivityBinder<TInstance>, Func<BehaviorContext<TInstance>, Task<Activity<TInstance>>>)
Add an activity execution to the event's behavior
public static EventActivityBinder<TInstance> ExecuteAsync<TInstance>(this EventActivityBinder<TInstance> binder, Func<BehaviorContext<TInstance>, Task<Activity<TInstance>>> activityFactory) where TInstance : classParameters
- binderEventActivityBinder<TInstance>
- The event binder 
- activityFactoryFunc<BehaviorContext<TInstance>, Task<Activity<TInstance>>>
- The factory method which returns the activity to execute 
Returns
- EventActivityBinder<TInstance>
Type Parameters
- TInstance
- The state machine instance type 
ExecuteAsync<TInstance, TData>(EventActivityBinder<TInstance, TData>, Func<BehaviorContext<TInstance, TData>, Task<Activity<TInstance, TData>>>)
Add an activity execution to the event's behavior
public static EventActivityBinder<TInstance, TData> ExecuteAsync<TInstance, TData>(this EventActivityBinder<TInstance, TData> binder, Func<BehaviorContext<TInstance, TData>, Task<Activity<TInstance, TData>>> activityFactory) where TInstance : classParameters
- binderEventActivityBinder<TInstance, TData>
- The event binder 
- activityFactoryFunc<BehaviorContext<TInstance, TData>, Task<Activity<TInstance, TData>>>
- The factory method which returns the activity to execute 
Returns
- EventActivityBinder<TInstance, TData>
Type Parameters
- TInstance
- The state machine instance type 
- TData
- The event data type 
ExecuteAsync<TInstance, TData>(EventActivityBinder<TInstance, TData>, Func<BehaviorContext<TInstance, TData>, Task<Activity<TInstance>>>)
Add an activity execution to the event's behavior
public static EventActivityBinder<TInstance, TData> ExecuteAsync<TInstance, TData>(this EventActivityBinder<TInstance, TData> binder, Func<BehaviorContext<TInstance, TData>, Task<Activity<TInstance>>> activityFactory) where TInstance : classParameters
- binderEventActivityBinder<TInstance, TData>
- The event binder 
- activityFactoryFunc<BehaviorContext<TInstance, TData>, Task<Activity<TInstance>>>
- The factory method which returns the activity to execute 
Returns
- EventActivityBinder<TInstance, TData>
Type Parameters
- TInstance
- The state machine instance type 
- TData
- The event data type 
Execute<TInstance>(EventActivityBinder<TInstance>, Func<BehaviorContext<TInstance>, Activity<TInstance>>)
Add an activity execution to the event's behavior
public static EventActivityBinder<TInstance> Execute<TInstance>(this EventActivityBinder<TInstance> binder, Func<BehaviorContext<TInstance>, Activity<TInstance>> activityFactory) where TInstance : classParameters
- binderEventActivityBinder<TInstance>
- The event binder 
- activityFactoryFunc<BehaviorContext<TInstance>, Activity<TInstance>>
- The factory method which returns the activity to execute 
Returns
- EventActivityBinder<TInstance>
Type Parameters
- TInstance
- The state machine instance type 
Execute<TInstance, TData>(EventActivityBinder<TInstance, TData>, Func<BehaviorContext<TInstance, TData>, Activity<TInstance, TData>>)
Add an activity execution to the event's behavior
public static EventActivityBinder<TInstance, TData> Execute<TInstance, TData>(this EventActivityBinder<TInstance, TData> binder, Func<BehaviorContext<TInstance, TData>, Activity<TInstance, TData>> activityFactory) where TInstance : classParameters
- binderEventActivityBinder<TInstance, TData>
- The event binder 
- activityFactoryFunc<BehaviorContext<TInstance, TData>, Activity<TInstance, TData>>
- The factory method which returns the activity to execute 
Returns
- EventActivityBinder<TInstance, TData>
Type Parameters
- TInstance
- The state machine instance type 
- TData
- The event data type 
Execute<TInstance, TData>(EventActivityBinder<TInstance, TData>, Func<BehaviorContext<TInstance, TData>, Activity<TInstance>>)
Add an activity execution to the event's behavior
public static EventActivityBinder<TInstance, TData> Execute<TInstance, TData>(this EventActivityBinder<TInstance, TData> binder, Func<BehaviorContext<TInstance, TData>, Activity<TInstance>> activityFactory) where TInstance : classParameters
- binderEventActivityBinder<TInstance, TData>
- The event binder 
- activityFactoryFunc<BehaviorContext<TInstance, TData>, Activity<TInstance>>
- The factory method which returns the activity to execute 
Returns
- EventActivityBinder<TInstance, TData>
Type Parameters
- TInstance
- The state machine instance type 
- TData
- The event data type 
ThenAsync<TInstance>(EventActivityBinder<TInstance>, Func<BehaviorContext<TInstance>, Task>)
Adds an asynchronous delegate activity to the event's behavior
public static EventActivityBinder<TInstance> ThenAsync<TInstance>(this EventActivityBinder<TInstance> binder, Func<BehaviorContext<TInstance>, Task> action) where TInstance : classParameters
- binderEventActivityBinder<TInstance>
- The event binder 
- actionFunc<BehaviorContext<TInstance>, Task>
- The asynchronous delegate 
Returns
- EventActivityBinder<TInstance>
Type Parameters
- TInstance
- The state machine instance type 
ThenAsync<TInstance, TData>(EventActivityBinder<TInstance, TData>, Func<BehaviorContext<TInstance, TData>, Task>)
Adds an asynchronous delegate activity to the event's behavior
public static EventActivityBinder<TInstance, TData> ThenAsync<TInstance, TData>(this EventActivityBinder<TInstance, TData> binder, Func<BehaviorContext<TInstance, TData>, Task> action) where TInstance : classParameters
- binderEventActivityBinder<TInstance, TData>
- The event binder 
- actionFunc<BehaviorContext<TInstance, TData>, Task>
- The asynchronous delegate 
Returns
- EventActivityBinder<TInstance, TData>
Type Parameters
- TInstance
- The state machine instance type 
- TData
- The event data type 
Then<TInstance>(EventActivityBinder<TInstance>, Action<BehaviorContext<TInstance>>)
Adds a synchronous delegate activity to the event's behavior
public static EventActivityBinder<TInstance> Then<TInstance>(this EventActivityBinder<TInstance> binder, Action<BehaviorContext<TInstance>> action) where TInstance : classParameters
- binderEventActivityBinder<TInstance>
- The event binder 
- actionAction<BehaviorContext<TInstance>>
- The synchronous delegate 
Returns
- EventActivityBinder<TInstance>
Type Parameters
- TInstance
- The state machine instance type 
Then<TInstance, TData>(EventActivityBinder<TInstance, TData>, Action<BehaviorContext<TInstance, TData>>)
Adds a synchronous delegate activity to the event's behavior
public static EventActivityBinder<TInstance, TData> Then<TInstance, TData>(this EventActivityBinder<TInstance, TData> binder, Action<BehaviorContext<TInstance, TData>> action) where TInstance : classParameters
- binderEventActivityBinder<TInstance, TData>
- The event binder 
- actionAction<BehaviorContext<TInstance, TData>>
- The synchronous delegate 
Returns
- EventActivityBinder<TInstance, TData>
Type Parameters
- TInstance
- The state machine instance type 
- TData
- The event data type 
Then<TInstance, TException>(ExceptionActivityBinder<TInstance, TException>, Action<BehaviorExceptionContext<TInstance, TException>>)
Adds a synchronous delegate activity to the event's behavior
public static ExceptionActivityBinder<TInstance, TException> Then<TInstance, TException>(this ExceptionActivityBinder<TInstance, TException> binder, Action<BehaviorExceptionContext<TInstance, TException>> action) where TInstance : class where TException : ExceptionParameters
- binderExceptionActivityBinder<TInstance, TException>
- The event binder 
- actionAction<BehaviorExceptionContext<TInstance, TException>>
- The synchronous delegate 
Returns
- ExceptionActivityBinder<TInstance, TException>
Type Parameters
- TInstance
- The state machine instance type 
- TException
- The exception type 
Then<TInstance, TData, TException>(ExceptionActivityBinder<TInstance, TData, TException>, Action<BehaviorExceptionContext<TInstance, TData, TException>>)
Adds a synchronous delegate activity to the event's behavior
public static ExceptionActivityBinder<TInstance, TData, TException> Then<TInstance, TData, TException>(this ExceptionActivityBinder<TInstance, TData, TException> binder, Action<BehaviorExceptionContext<TInstance, TData, TException>> action) where TInstance : class where TException : ExceptionParameters
- binderExceptionActivityBinder<TInstance, TData, TException>
- The event binder 
- actionAction<BehaviorExceptionContext<TInstance, TData, TException>>
- The synchronous delegate 
Returns
- ExceptionActivityBinder<TInstance, TData, TException>
Type Parameters
- TInstance
- The state machine instance type 
- TData
- The event data type 
- TException
- The exception type