Class RaiseEventExtensions
- Namespace
- Automatonymous
- Assembly
- Automatonymous.dll
public static class RaiseEventExtensions
- Inheritance
-
RaiseEventExtensions
- Inherited Members
Methods
RaiseEvent<T, TInstance, T1, T2, T3, T4, T5, T6, T7, T8>(T, TInstance, Event, T1, T2, T3, T4, T5, T6, T7, T8, CancellationToken)
Raise a simple event on the state machine
public static Task RaiseEvent<T, TInstance, T1, T2, T3, T4, T5, T6, T7, T8>(this T machine, TInstance instance, Event @event, T1 context1, T2 context2, T3 context3, T4 context4, T5 context5, T6 context6, T7 context7, T8 context8, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class where T1 : class where T2 : class where T3 : class where T4 : class where T5 : class where T6 : class where T7 : class where T8 : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventEventThe event to raise
context1T1An additional context added to the event context
context2T2An additional context added to the event context
context3T3An additional context added to the event context
context4T4An additional context added to the event context
context5T5An additional context added to the event context
context6T6An additional context added to the event context
context7T7An additional context added to the event context
context8T8An additional context added to the event context
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TInstanceThe instance type
T1T2T3T4T5T6T7T8
RaiseEvent<T, TInstance, T1, T2, T3, T4, T5, T6, T7, T8>(T, TInstance, Func<T, Event>, T1, T2, T3, T4, T5, T6, T7, T8, CancellationToken)
Raise a simple event on the state machine
public static Task RaiseEvent<T, TInstance, T1, T2, T3, T4, T5, T6, T7, T8>(this T machine, TInstance instance, Func<T, Event> eventSelector, T1 context1, T2 context2, T3 context3, T4 context4, T5 context5, T6 context6, T7 context7, T8 context8, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class where T1 : class where T2 : class where T3 : class where T4 : class where T5 : class where T6 : class where T7 : class where T8 : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventSelectorFunc<T, Event>Selector to the event on the state machine
context1T1An additional context added to the event context
context2T2An additional context added to the event context
context3T3An additional context added to the event context
context4T4An additional context added to the event context
context5T5An additional context added to the event context
context6T6An additional context added to the event context
context7T7An additional context added to the event context
context8T8An additional context added to the event context
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TInstanceThe instance type
T1T2T3T4T5T6T7T8
RaiseEvent<T, TData, TInstance, T1, T2, T3, T4, T5, T6, T7>(T, TInstance, Event<TData>, TData, T1, T2, T3, T4, T5, T6, T7, CancellationToken)
Raise a data event on the state machine
public static Task RaiseEvent<T, TData, TInstance, T1, T2, T3, T4, T5, T6, T7>(this T machine, TInstance instance, Event<TData> @event, TData data, T1 context1, T2 context2, T3 context3, T4 context4, T5 context5, T6 context6, T7 context7, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class where T1 : class where T2 : class where T3 : class where T4 : class where T5 : class where T6 : class where T7 : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventEvent<TData>The event to raise
dataTDataThe event data
context1T1An additional context added to the event context
context2T2An additional context added to the event context
context3T3An additional context added to the event context
context4T4An additional context added to the event context
context5T5An additional context added to the event context
context6T6An additional context added to the event context
context7T7An additional context added to the event context
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TDataThe event data type
TInstanceThe instance type
T1T2T3T4T5T6T7
RaiseEvent<T, TData, TInstance, T1, T2, T3, T4, T5, T6, T7>(T, TInstance, Func<T, Event<TData>>, TData, T1, T2, T3, T4, T5, T6, T7, CancellationToken)
Raise a data event on the state machine
public static Task RaiseEvent<T, TData, TInstance, T1, T2, T3, T4, T5, T6, T7>(this T machine, TInstance instance, Func<T, Event<TData>> eventSelector, TData data, T1 context1, T2 context2, T3 context3, T4 context4, T5 context5, T6 context6, T7 context7, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class where T1 : class where T2 : class where T3 : class where T4 : class where T5 : class where T6 : class where T7 : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventSelectorFunc<T, Event<TData>>Selector to the event on the state machine
dataTDataThe event data
context1T1An additional context added to the event context
context2T2An additional context added to the event context
context3T3An additional context added to the event context
context4T4An additional context added to the event context
context5T5An additional context added to the event context
context6T6An additional context added to the event context
context7T7An additional context added to the event context
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TDataThe event data type
TInstanceThe instance type
T1T2T3T4T5T6T7
RaiseEvent<T, TInstance, T1, T2, T3, T4, T5, T6, T7, T8, T9>(T, TInstance, Event, T1, T2, T3, T4, T5, T6, T7, T8, T9, CancellationToken)
Raise a simple event on the state machine
public static Task RaiseEvent<T, TInstance, T1, T2, T3, T4, T5, T6, T7, T8, T9>(this T machine, TInstance instance, Event @event, T1 context1, T2 context2, T3 context3, T4 context4, T5 context5, T6 context6, T7 context7, T8 context8, T9 context9, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class where T1 : class where T2 : class where T3 : class where T4 : class where T5 : class where T6 : class where T7 : class where T8 : class where T9 : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventEventThe event to raise
context1T1An additional context added to the event context
context2T2An additional context added to the event context
context3T3An additional context added to the event context
context4T4An additional context added to the event context
context5T5An additional context added to the event context
context6T6An additional context added to the event context
context7T7An additional context added to the event context
context8T8An additional context added to the event context
context9T9An additional context added to the event context
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TInstanceThe instance type
T1T2T3T4T5T6T7T8T9
RaiseEvent<T, TInstance, T1, T2, T3, T4, T5, T6, T7, T8, T9>(T, TInstance, Func<T, Event>, T1, T2, T3, T4, T5, T6, T7, T8, T9, CancellationToken)
Raise a simple event on the state machine
public static Task RaiseEvent<T, TInstance, T1, T2, T3, T4, T5, T6, T7, T8, T9>(this T machine, TInstance instance, Func<T, Event> eventSelector, T1 context1, T2 context2, T3 context3, T4 context4, T5 context5, T6 context6, T7 context7, T8 context8, T9 context9, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class where T1 : class where T2 : class where T3 : class where T4 : class where T5 : class where T6 : class where T7 : class where T8 : class where T9 : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventSelectorFunc<T, Event>Selector to the event on the state machine
context1T1An additional context added to the event context
context2T2An additional context added to the event context
context3T3An additional context added to the event context
context4T4An additional context added to the event context
context5T5An additional context added to the event context
context6T6An additional context added to the event context
context7T7An additional context added to the event context
context8T8An additional context added to the event context
context9T9An additional context added to the event context
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TInstanceThe instance type
T1T2T3T4T5T6T7T8T9
RaiseEvent<T, TData, TInstance, T1, T2, T3, T4, T5, T6, T7, T8>(T, TInstance, Event<TData>, TData, T1, T2, T3, T4, T5, T6, T7, T8, CancellationToken)
Raise a data event on the state machine
public static Task RaiseEvent<T, TData, TInstance, T1, T2, T3, T4, T5, T6, T7, T8>(this T machine, TInstance instance, Event<TData> @event, TData data, T1 context1, T2 context2, T3 context3, T4 context4, T5 context5, T6 context6, T7 context7, T8 context8, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class where T1 : class where T2 : class where T3 : class where T4 : class where T5 : class where T6 : class where T7 : class where T8 : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventEvent<TData>The event to raise
dataTDataThe event data
context1T1An additional context added to the event context
context2T2An additional context added to the event context
context3T3An additional context added to the event context
context4T4An additional context added to the event context
context5T5An additional context added to the event context
context6T6An additional context added to the event context
context7T7An additional context added to the event context
context8T8An additional context added to the event context
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TDataThe event data type
TInstanceThe instance type
T1T2T3T4T5T6T7T8
RaiseEvent<T, TData, TInstance, T1, T2, T3, T4, T5, T6, T7, T8>(T, TInstance, Func<T, Event<TData>>, TData, T1, T2, T3, T4, T5, T6, T7, T8, CancellationToken)
Raise a data event on the state machine
public static Task RaiseEvent<T, TData, TInstance, T1, T2, T3, T4, T5, T6, T7, T8>(this T machine, TInstance instance, Func<T, Event<TData>> eventSelector, TData data, T1 context1, T2 context2, T3 context3, T4 context4, T5 context5, T6 context6, T7 context7, T8 context8, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class where T1 : class where T2 : class where T3 : class where T4 : class where T5 : class where T6 : class where T7 : class where T8 : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventSelectorFunc<T, Event<TData>>Selector to the event on the state machine
dataTDataThe event data
context1T1An additional context added to the event context
context2T2An additional context added to the event context
context3T3An additional context added to the event context
context4T4An additional context added to the event context
context5T5An additional context added to the event context
context6T6An additional context added to the event context
context7T7An additional context added to the event context
context8T8An additional context added to the event context
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TDataThe event data type
TInstanceThe instance type
T1T2T3T4T5T6T7T8
RaiseEvent<T, TInstance, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(T, TInstance, Event, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, CancellationToken)
Raise a simple event on the state machine
public static Task RaiseEvent<T, TInstance, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(this T machine, TInstance instance, Event @event, T1 context1, T2 context2, T3 context3, T4 context4, T5 context5, T6 context6, T7 context7, T8 context8, T9 context9, T10 context10, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class where T1 : class where T2 : class where T3 : class where T4 : class where T5 : class where T6 : class where T7 : class where T8 : class where T9 : class where T10 : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventEventThe event to raise
context1T1An additional context added to the event context
context2T2An additional context added to the event context
context3T3An additional context added to the event context
context4T4An additional context added to the event context
context5T5An additional context added to the event context
context6T6An additional context added to the event context
context7T7An additional context added to the event context
context8T8An additional context added to the event context
context9T9An additional context added to the event context
context10T10An additional context added to the event context
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TInstanceThe instance type
T1T2T3T4T5T6T7T8T9T10
RaiseEvent<T, TInstance, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(T, TInstance, Func<T, Event>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, CancellationToken)
Raise a simple event on the state machine
public static Task RaiseEvent<T, TInstance, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(this T machine, TInstance instance, Func<T, Event> eventSelector, T1 context1, T2 context2, T3 context3, T4 context4, T5 context5, T6 context6, T7 context7, T8 context8, T9 context9, T10 context10, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class where T1 : class where T2 : class where T3 : class where T4 : class where T5 : class where T6 : class where T7 : class where T8 : class where T9 : class where T10 : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventSelectorFunc<T, Event>Selector to the event on the state machine
context1T1An additional context added to the event context
context2T2An additional context added to the event context
context3T3An additional context added to the event context
context4T4An additional context added to the event context
context5T5An additional context added to the event context
context6T6An additional context added to the event context
context7T7An additional context added to the event context
context8T8An additional context added to the event context
context9T9An additional context added to the event context
context10T10An additional context added to the event context
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TInstanceThe instance type
T1T2T3T4T5T6T7T8T9T10
RaiseEvent<T, TData, TInstance, T1, T2, T3, T4, T5, T6, T7, T8, T9>(T, TInstance, Event<TData>, TData, T1, T2, T3, T4, T5, T6, T7, T8, T9, CancellationToken)
Raise a data event on the state machine
public static Task RaiseEvent<T, TData, TInstance, T1, T2, T3, T4, T5, T6, T7, T8, T9>(this T machine, TInstance instance, Event<TData> @event, TData data, T1 context1, T2 context2, T3 context3, T4 context4, T5 context5, T6 context6, T7 context7, T8 context8, T9 context9, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class where T1 : class where T2 : class where T3 : class where T4 : class where T5 : class where T6 : class where T7 : class where T8 : class where T9 : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventEvent<TData>The event to raise
dataTDataThe event data
context1T1An additional context added to the event context
context2T2An additional context added to the event context
context3T3An additional context added to the event context
context4T4An additional context added to the event context
context5T5An additional context added to the event context
context6T6An additional context added to the event context
context7T7An additional context added to the event context
context8T8An additional context added to the event context
context9T9An additional context added to the event context
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TDataThe event data type
TInstanceThe instance type
T1T2T3T4T5T6T7T8T9
RaiseEvent<T, TData, TInstance, T1, T2, T3, T4, T5, T6, T7, T8, T9>(T, TInstance, Func<T, Event<TData>>, TData, T1, T2, T3, T4, T5, T6, T7, T8, T9, CancellationToken)
Raise a data event on the state machine
public static Task RaiseEvent<T, TData, TInstance, T1, T2, T3, T4, T5, T6, T7, T8, T9>(this T machine, TInstance instance, Func<T, Event<TData>> eventSelector, TData data, T1 context1, T2 context2, T3 context3, T4 context4, T5 context5, T6 context6, T7 context7, T8 context8, T9 context9, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class where T1 : class where T2 : class where T3 : class where T4 : class where T5 : class where T6 : class where T7 : class where T8 : class where T9 : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventSelectorFunc<T, Event<TData>>Selector to the event on the state machine
dataTDataThe event data
context1T1An additional context added to the event context
context2T2An additional context added to the event context
context3T3An additional context added to the event context
context4T4An additional context added to the event context
context5T5An additional context added to the event context
context6T6An additional context added to the event context
context7T7An additional context added to the event context
context8T8An additional context added to the event context
context9T9An additional context added to the event context
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TDataThe event data type
TInstanceThe instance type
T1T2T3T4T5T6T7T8T9
RaiseEvent<T, TInstance, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>(T, TInstance, Event, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, CancellationToken)
Raise a simple event on the state machine
public static Task RaiseEvent<T, TInstance, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>(this T machine, TInstance instance, Event @event, T1 context1, T2 context2, T3 context3, T4 context4, T5 context5, T6 context6, T7 context7, T8 context8, T9 context9, T10 context10, T11 context11, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class where T1 : class where T2 : class where T3 : class where T4 : class where T5 : class where T6 : class where T7 : class where T8 : class where T9 : class where T10 : class where T11 : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventEventThe event to raise
context1T1An additional context added to the event context
context2T2An additional context added to the event context
context3T3An additional context added to the event context
context4T4An additional context added to the event context
context5T5An additional context added to the event context
context6T6An additional context added to the event context
context7T7An additional context added to the event context
context8T8An additional context added to the event context
context9T9An additional context added to the event context
context10T10An additional context added to the event context
context11T11An additional context added to the event context
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TInstanceThe instance type
T1T2T3T4T5T6T7T8T9T10T11
RaiseEvent<T, TInstance, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>(T, TInstance, Func<T, Event>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, CancellationToken)
Raise a simple event on the state machine
public static Task RaiseEvent<T, TInstance, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>(this T machine, TInstance instance, Func<T, Event> eventSelector, T1 context1, T2 context2, T3 context3, T4 context4, T5 context5, T6 context6, T7 context7, T8 context8, T9 context9, T10 context10, T11 context11, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class where T1 : class where T2 : class where T3 : class where T4 : class where T5 : class where T6 : class where T7 : class where T8 : class where T9 : class where T10 : class where T11 : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventSelectorFunc<T, Event>Selector to the event on the state machine
context1T1An additional context added to the event context
context2T2An additional context added to the event context
context3T3An additional context added to the event context
context4T4An additional context added to the event context
context5T5An additional context added to the event context
context6T6An additional context added to the event context
context7T7An additional context added to the event context
context8T8An additional context added to the event context
context9T9An additional context added to the event context
context10T10An additional context added to the event context
context11T11An additional context added to the event context
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TInstanceThe instance type
T1T2T3T4T5T6T7T8T9T10T11
RaiseEvent<T, TData, TInstance, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(T, TInstance, Event<TData>, TData, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, CancellationToken)
Raise a data event on the state machine
public static Task RaiseEvent<T, TData, TInstance, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(this T machine, TInstance instance, Event<TData> @event, TData data, T1 context1, T2 context2, T3 context3, T4 context4, T5 context5, T6 context6, T7 context7, T8 context8, T9 context9, T10 context10, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class where T1 : class where T2 : class where T3 : class where T4 : class where T5 : class where T6 : class where T7 : class where T8 : class where T9 : class where T10 : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventEvent<TData>The event to raise
dataTDataThe event data
context1T1An additional context added to the event context
context2T2An additional context added to the event context
context3T3An additional context added to the event context
context4T4An additional context added to the event context
context5T5An additional context added to the event context
context6T6An additional context added to the event context
context7T7An additional context added to the event context
context8T8An additional context added to the event context
context9T9An additional context added to the event context
context10T10An additional context added to the event context
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TDataThe event data type
TInstanceThe instance type
T1T2T3T4T5T6T7T8T9T10
RaiseEvent<T, TData, TInstance, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(T, TInstance, Func<T, Event<TData>>, TData, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, CancellationToken)
Raise a data event on the state machine
public static Task RaiseEvent<T, TData, TInstance, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(this T machine, TInstance instance, Func<T, Event<TData>> eventSelector, TData data, T1 context1, T2 context2, T3 context3, T4 context4, T5 context5, T6 context6, T7 context7, T8 context8, T9 context9, T10 context10, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class where T1 : class where T2 : class where T3 : class where T4 : class where T5 : class where T6 : class where T7 : class where T8 : class where T9 : class where T10 : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventSelectorFunc<T, Event<TData>>Selector to the event on the state machine
dataTDataThe event data
context1T1An additional context added to the event context
context2T2An additional context added to the event context
context3T3An additional context added to the event context
context4T4An additional context added to the event context
context5T5An additional context added to the event context
context6T6An additional context added to the event context
context7T7An additional context added to the event context
context8T8An additional context added to the event context
context9T9An additional context added to the event context
context10T10An additional context added to the event context
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TDataThe event data type
TInstanceThe instance type
T1T2T3T4T5T6T7T8T9T10
RaiseEvent<T, TInstance, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>(T, TInstance, Event, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, CancellationToken)
Raise a simple event on the state machine
public static Task RaiseEvent<T, TInstance, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>(this T machine, TInstance instance, Event @event, T1 context1, T2 context2, T3 context3, T4 context4, T5 context5, T6 context6, T7 context7, T8 context8, T9 context9, T10 context10, T11 context11, T12 context12, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class where T1 : class where T2 : class where T3 : class where T4 : class where T5 : class where T6 : class where T7 : class where T8 : class where T9 : class where T10 : class where T11 : class where T12 : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventEventThe event to raise
context1T1An additional context added to the event context
context2T2An additional context added to the event context
context3T3An additional context added to the event context
context4T4An additional context added to the event context
context5T5An additional context added to the event context
context6T6An additional context added to the event context
context7T7An additional context added to the event context
context8T8An additional context added to the event context
context9T9An additional context added to the event context
context10T10An additional context added to the event context
context11T11An additional context added to the event context
context12T12An additional context added to the event context
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TInstanceThe instance type
T1T2T3T4T5T6T7T8T9T10T11T12
RaiseEvent<T, TInstance, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>(T, TInstance, Func<T, Event>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, CancellationToken)
Raise a simple event on the state machine
public static Task RaiseEvent<T, TInstance, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>(this T machine, TInstance instance, Func<T, Event> eventSelector, T1 context1, T2 context2, T3 context3, T4 context4, T5 context5, T6 context6, T7 context7, T8 context8, T9 context9, T10 context10, T11 context11, T12 context12, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class where T1 : class where T2 : class where T3 : class where T4 : class where T5 : class where T6 : class where T7 : class where T8 : class where T9 : class where T10 : class where T11 : class where T12 : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventSelectorFunc<T, Event>Selector to the event on the state machine
context1T1An additional context added to the event context
context2T2An additional context added to the event context
context3T3An additional context added to the event context
context4T4An additional context added to the event context
context5T5An additional context added to the event context
context6T6An additional context added to the event context
context7T7An additional context added to the event context
context8T8An additional context added to the event context
context9T9An additional context added to the event context
context10T10An additional context added to the event context
context11T11An additional context added to the event context
context12T12An additional context added to the event context
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TInstanceThe instance type
T1T2T3T4T5T6T7T8T9T10T11T12
RaiseEvent<T, TData, TInstance, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>(T, TInstance, Event<TData>, TData, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, CancellationToken)
Raise a data event on the state machine
public static Task RaiseEvent<T, TData, TInstance, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>(this T machine, TInstance instance, Event<TData> @event, TData data, T1 context1, T2 context2, T3 context3, T4 context4, T5 context5, T6 context6, T7 context7, T8 context8, T9 context9, T10 context10, T11 context11, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class where T1 : class where T2 : class where T3 : class where T4 : class where T5 : class where T6 : class where T7 : class where T8 : class where T9 : class where T10 : class where T11 : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventEvent<TData>The event to raise
dataTDataThe event data
context1T1An additional context added to the event context
context2T2An additional context added to the event context
context3T3An additional context added to the event context
context4T4An additional context added to the event context
context5T5An additional context added to the event context
context6T6An additional context added to the event context
context7T7An additional context added to the event context
context8T8An additional context added to the event context
context9T9An additional context added to the event context
context10T10An additional context added to the event context
context11T11An additional context added to the event context
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TDataThe event data type
TInstanceThe instance type
T1T2T3T4T5T6T7T8T9T10T11
RaiseEvent<T, TData, TInstance, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>(T, TInstance, Func<T, Event<TData>>, TData, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, CancellationToken)
Raise a data event on the state machine
public static Task RaiseEvent<T, TData, TInstance, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>(this T machine, TInstance instance, Func<T, Event<TData>> eventSelector, TData data, T1 context1, T2 context2, T3 context3, T4 context4, T5 context5, T6 context6, T7 context7, T8 context8, T9 context9, T10 context10, T11 context11, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class where T1 : class where T2 : class where T3 : class where T4 : class where T5 : class where T6 : class where T7 : class where T8 : class where T9 : class where T10 : class where T11 : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventSelectorFunc<T, Event<TData>>Selector to the event on the state machine
dataTDataThe event data
context1T1An additional context added to the event context
context2T2An additional context added to the event context
context3T3An additional context added to the event context
context4T4An additional context added to the event context
context5T5An additional context added to the event context
context6T6An additional context added to the event context
context7T7An additional context added to the event context
context8T8An additional context added to the event context
context9T9An additional context added to the event context
context10T10An additional context added to the event context
context11T11An additional context added to the event context
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TDataThe event data type
TInstanceThe instance type
T1T2T3T4T5T6T7T8T9T10T11
RaiseEvent<T, TInstance, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>(T, TInstance, Event, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, CancellationToken)
Raise a simple event on the state machine
public static Task RaiseEvent<T, TInstance, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>(this T machine, TInstance instance, Event @event, T1 context1, T2 context2, T3 context3, T4 context4, T5 context5, T6 context6, T7 context7, T8 context8, T9 context9, T10 context10, T11 context11, T12 context12, T13 context13, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class where T1 : class where T2 : class where T3 : class where T4 : class where T5 : class where T6 : class where T7 : class where T8 : class where T9 : class where T10 : class where T11 : class where T12 : class where T13 : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventEventThe event to raise
context1T1An additional context added to the event context
context2T2An additional context added to the event context
context3T3An additional context added to the event context
context4T4An additional context added to the event context
context5T5An additional context added to the event context
context6T6An additional context added to the event context
context7T7An additional context added to the event context
context8T8An additional context added to the event context
context9T9An additional context added to the event context
context10T10An additional context added to the event context
context11T11An additional context added to the event context
context12T12An additional context added to the event context
context13T13An additional context added to the event context
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TInstanceThe instance type
T1T2T3T4T5T6T7T8T9T10T11T12T13
RaiseEvent<T, TInstance, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>(T, TInstance, Func<T, Event>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, CancellationToken)
Raise a simple event on the state machine
public static Task RaiseEvent<T, TInstance, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>(this T machine, TInstance instance, Func<T, Event> eventSelector, T1 context1, T2 context2, T3 context3, T4 context4, T5 context5, T6 context6, T7 context7, T8 context8, T9 context9, T10 context10, T11 context11, T12 context12, T13 context13, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class where T1 : class where T2 : class where T3 : class where T4 : class where T5 : class where T6 : class where T7 : class where T8 : class where T9 : class where T10 : class where T11 : class where T12 : class where T13 : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventSelectorFunc<T, Event>Selector to the event on the state machine
context1T1An additional context added to the event context
context2T2An additional context added to the event context
context3T3An additional context added to the event context
context4T4An additional context added to the event context
context5T5An additional context added to the event context
context6T6An additional context added to the event context
context7T7An additional context added to the event context
context8T8An additional context added to the event context
context9T9An additional context added to the event context
context10T10An additional context added to the event context
context11T11An additional context added to the event context
context12T12An additional context added to the event context
context13T13An additional context added to the event context
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TInstanceThe instance type
T1T2T3T4T5T6T7T8T9T10T11T12T13
RaiseEvent<T, TData, TInstance, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>(T, TInstance, Event<TData>, TData, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, CancellationToken)
Raise a data event on the state machine
public static Task RaiseEvent<T, TData, TInstance, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>(this T machine, TInstance instance, Event<TData> @event, TData data, T1 context1, T2 context2, T3 context3, T4 context4, T5 context5, T6 context6, T7 context7, T8 context8, T9 context9, T10 context10, T11 context11, T12 context12, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class where T1 : class where T2 : class where T3 : class where T4 : class where T5 : class where T6 : class where T7 : class where T8 : class where T9 : class where T10 : class where T11 : class where T12 : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventEvent<TData>The event to raise
dataTDataThe event data
context1T1An additional context added to the event context
context2T2An additional context added to the event context
context3T3An additional context added to the event context
context4T4An additional context added to the event context
context5T5An additional context added to the event context
context6T6An additional context added to the event context
context7T7An additional context added to the event context
context8T8An additional context added to the event context
context9T9An additional context added to the event context
context10T10An additional context added to the event context
context11T11An additional context added to the event context
context12T12An additional context added to the event context
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TDataThe event data type
TInstanceThe instance type
T1T2T3T4T5T6T7T8T9T10T11T12
RaiseEvent<T, TData, TInstance, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>(T, TInstance, Func<T, Event<TData>>, TData, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, CancellationToken)
Raise a data event on the state machine
public static Task RaiseEvent<T, TData, TInstance, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>(this T machine, TInstance instance, Func<T, Event<TData>> eventSelector, TData data, T1 context1, T2 context2, T3 context3, T4 context4, T5 context5, T6 context6, T7 context7, T8 context8, T9 context9, T10 context10, T11 context11, T12 context12, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class where T1 : class where T2 : class where T3 : class where T4 : class where T5 : class where T6 : class where T7 : class where T8 : class where T9 : class where T10 : class where T11 : class where T12 : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventSelectorFunc<T, Event<TData>>Selector to the event on the state machine
dataTDataThe event data
context1T1An additional context added to the event context
context2T2An additional context added to the event context
context3T3An additional context added to the event context
context4T4An additional context added to the event context
context5T5An additional context added to the event context
context6T6An additional context added to the event context
context7T7An additional context added to the event context
context8T8An additional context added to the event context
context9T9An additional context added to the event context
context10T10An additional context added to the event context
context11T11An additional context added to the event context
context12T12An additional context added to the event context
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TDataThe event data type
TInstanceThe instance type
T1T2T3T4T5T6T7T8T9T10T11T12
RaiseEvent<T, TInstance, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>(T, TInstance, Event, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, CancellationToken)
Raise a simple event on the state machine
public static Task RaiseEvent<T, TInstance, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>(this T machine, TInstance instance, Event @event, T1 context1, T2 context2, T3 context3, T4 context4, T5 context5, T6 context6, T7 context7, T8 context8, T9 context9, T10 context10, T11 context11, T12 context12, T13 context13, T14 context14, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class where T1 : class where T2 : class where T3 : class where T4 : class where T5 : class where T6 : class where T7 : class where T8 : class where T9 : class where T10 : class where T11 : class where T12 : class where T13 : class where T14 : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventEventThe event to raise
context1T1An additional context added to the event context
context2T2An additional context added to the event context
context3T3An additional context added to the event context
context4T4An additional context added to the event context
context5T5An additional context added to the event context
context6T6An additional context added to the event context
context7T7An additional context added to the event context
context8T8An additional context added to the event context
context9T9An additional context added to the event context
context10T10An additional context added to the event context
context11T11An additional context added to the event context
context12T12An additional context added to the event context
context13T13An additional context added to the event context
context14T14An additional context added to the event context
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TInstanceThe instance type
T1T2T3T4T5T6T7T8T9T10T11T12T13T14
RaiseEvent<T, TInstance, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>(T, TInstance, Func<T, Event>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, CancellationToken)
Raise a simple event on the state machine
public static Task RaiseEvent<T, TInstance, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>(this T machine, TInstance instance, Func<T, Event> eventSelector, T1 context1, T2 context2, T3 context3, T4 context4, T5 context5, T6 context6, T7 context7, T8 context8, T9 context9, T10 context10, T11 context11, T12 context12, T13 context13, T14 context14, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class where T1 : class where T2 : class where T3 : class where T4 : class where T5 : class where T6 : class where T7 : class where T8 : class where T9 : class where T10 : class where T11 : class where T12 : class where T13 : class where T14 : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventSelectorFunc<T, Event>Selector to the event on the state machine
context1T1An additional context added to the event context
context2T2An additional context added to the event context
context3T3An additional context added to the event context
context4T4An additional context added to the event context
context5T5An additional context added to the event context
context6T6An additional context added to the event context
context7T7An additional context added to the event context
context8T8An additional context added to the event context
context9T9An additional context added to the event context
context10T10An additional context added to the event context
context11T11An additional context added to the event context
context12T12An additional context added to the event context
context13T13An additional context added to the event context
context14T14An additional context added to the event context
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TInstanceThe instance type
T1T2T3T4T5T6T7T8T9T10T11T12T13T14
RaiseEvent<T, TData, TInstance, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>(T, TInstance, Event<TData>, TData, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, CancellationToken)
Raise a data event on the state machine
public static Task RaiseEvent<T, TData, TInstance, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>(this T machine, TInstance instance, Event<TData> @event, TData data, T1 context1, T2 context2, T3 context3, T4 context4, T5 context5, T6 context6, T7 context7, T8 context8, T9 context9, T10 context10, T11 context11, T12 context12, T13 context13, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class where T1 : class where T2 : class where T3 : class where T4 : class where T5 : class where T6 : class where T7 : class where T8 : class where T9 : class where T10 : class where T11 : class where T12 : class where T13 : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventEvent<TData>The event to raise
dataTDataThe event data
context1T1An additional context added to the event context
context2T2An additional context added to the event context
context3T3An additional context added to the event context
context4T4An additional context added to the event context
context5T5An additional context added to the event context
context6T6An additional context added to the event context
context7T7An additional context added to the event context
context8T8An additional context added to the event context
context9T9An additional context added to the event context
context10T10An additional context added to the event context
context11T11An additional context added to the event context
context12T12An additional context added to the event context
context13T13An additional context added to the event context
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TDataThe event data type
TInstanceThe instance type
T1T2T3T4T5T6T7T8T9T10T11T12T13
RaiseEvent<T, TData, TInstance, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>(T, TInstance, Func<T, Event<TData>>, TData, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, CancellationToken)
Raise a data event on the state machine
public static Task RaiseEvent<T, TData, TInstance, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>(this T machine, TInstance instance, Func<T, Event<TData>> eventSelector, TData data, T1 context1, T2 context2, T3 context3, T4 context4, T5 context5, T6 context6, T7 context7, T8 context8, T9 context9, T10 context10, T11 context11, T12 context12, T13 context13, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class where T1 : class where T2 : class where T3 : class where T4 : class where T5 : class where T6 : class where T7 : class where T8 : class where T9 : class where T10 : class where T11 : class where T12 : class where T13 : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventSelectorFunc<T, Event<TData>>Selector to the event on the state machine
dataTDataThe event data
context1T1An additional context added to the event context
context2T2An additional context added to the event context
context3T3An additional context added to the event context
context4T4An additional context added to the event context
context5T5An additional context added to the event context
context6T6An additional context added to the event context
context7T7An additional context added to the event context
context8T8An additional context added to the event context
context9T9An additional context added to the event context
context10T10An additional context added to the event context
context11T11An additional context added to the event context
context12T12An additional context added to the event context
context13T13An additional context added to the event context
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TDataThe event data type
TInstanceThe instance type
T1T2T3T4T5T6T7T8T9T10T11T12T13
RaiseEvent<T, TInstance, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>(T, TInstance, Event, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, CancellationToken)
Raise a simple event on the state machine
public static Task RaiseEvent<T, TInstance, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>(this T machine, TInstance instance, Event @event, T1 context1, T2 context2, T3 context3, T4 context4, T5 context5, T6 context6, T7 context7, T8 context8, T9 context9, T10 context10, T11 context11, T12 context12, T13 context13, T14 context14, T15 context15, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class where T1 : class where T2 : class where T3 : class where T4 : class where T5 : class where T6 : class where T7 : class where T8 : class where T9 : class where T10 : class where T11 : class where T12 : class where T13 : class where T14 : class where T15 : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventEventThe event to raise
context1T1An additional context added to the event context
context2T2An additional context added to the event context
context3T3An additional context added to the event context
context4T4An additional context added to the event context
context5T5An additional context added to the event context
context6T6An additional context added to the event context
context7T7An additional context added to the event context
context8T8An additional context added to the event context
context9T9An additional context added to the event context
context10T10An additional context added to the event context
context11T11An additional context added to the event context
context12T12An additional context added to the event context
context13T13An additional context added to the event context
context14T14An additional context added to the event context
context15T15An additional context added to the event context
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TInstanceThe instance type
T1T2T3T4T5T6T7T8T9T10T11T12T13T14T15
RaiseEvent<T, TInstance, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>(T, TInstance, Func<T, Event>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, CancellationToken)
Raise a simple event on the state machine
public static Task RaiseEvent<T, TInstance, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>(this T machine, TInstance instance, Func<T, Event> eventSelector, T1 context1, T2 context2, T3 context3, T4 context4, T5 context5, T6 context6, T7 context7, T8 context8, T9 context9, T10 context10, T11 context11, T12 context12, T13 context13, T14 context14, T15 context15, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class where T1 : class where T2 : class where T3 : class where T4 : class where T5 : class where T6 : class where T7 : class where T8 : class where T9 : class where T10 : class where T11 : class where T12 : class where T13 : class where T14 : class where T15 : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventSelectorFunc<T, Event>Selector to the event on the state machine
context1T1An additional context added to the event context
context2T2An additional context added to the event context
context3T3An additional context added to the event context
context4T4An additional context added to the event context
context5T5An additional context added to the event context
context6T6An additional context added to the event context
context7T7An additional context added to the event context
context8T8An additional context added to the event context
context9T9An additional context added to the event context
context10T10An additional context added to the event context
context11T11An additional context added to the event context
context12T12An additional context added to the event context
context13T13An additional context added to the event context
context14T14An additional context added to the event context
context15T15An additional context added to the event context
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TInstanceThe instance type
T1T2T3T4T5T6T7T8T9T10T11T12T13T14T15
RaiseEvent<T, TData, TInstance, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>(T, TInstance, Event<TData>, TData, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, CancellationToken)
Raise a data event on the state machine
public static Task RaiseEvent<T, TData, TInstance, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>(this T machine, TInstance instance, Event<TData> @event, TData data, T1 context1, T2 context2, T3 context3, T4 context4, T5 context5, T6 context6, T7 context7, T8 context8, T9 context9, T10 context10, T11 context11, T12 context12, T13 context13, T14 context14, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class where T1 : class where T2 : class where T3 : class where T4 : class where T5 : class where T6 : class where T7 : class where T8 : class where T9 : class where T10 : class where T11 : class where T12 : class where T13 : class where T14 : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventEvent<TData>The event to raise
dataTDataThe event data
context1T1An additional context added to the event context
context2T2An additional context added to the event context
context3T3An additional context added to the event context
context4T4An additional context added to the event context
context5T5An additional context added to the event context
context6T6An additional context added to the event context
context7T7An additional context added to the event context
context8T8An additional context added to the event context
context9T9An additional context added to the event context
context10T10An additional context added to the event context
context11T11An additional context added to the event context
context12T12An additional context added to the event context
context13T13An additional context added to the event context
context14T14An additional context added to the event context
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TDataThe event data type
TInstanceThe instance type
T1T2T3T4T5T6T7T8T9T10T11T12T13T14
RaiseEvent<T, TData, TInstance, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>(T, TInstance, Func<T, Event<TData>>, TData, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, CancellationToken)
Raise a data event on the state machine
public static Task RaiseEvent<T, TData, TInstance, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>(this T machine, TInstance instance, Func<T, Event<TData>> eventSelector, TData data, T1 context1, T2 context2, T3 context3, T4 context4, T5 context5, T6 context6, T7 context7, T8 context8, T9 context9, T10 context10, T11 context11, T12 context12, T13 context13, T14 context14, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class where T1 : class where T2 : class where T3 : class where T4 : class where T5 : class where T6 : class where T7 : class where T8 : class where T9 : class where T10 : class where T11 : class where T12 : class where T13 : class where T14 : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventSelectorFunc<T, Event<TData>>Selector to the event on the state machine
dataTDataThe event data
context1T1An additional context added to the event context
context2T2An additional context added to the event context
context3T3An additional context added to the event context
context4T4An additional context added to the event context
context5T5An additional context added to the event context
context6T6An additional context added to the event context
context7T7An additional context added to the event context
context8T8An additional context added to the event context
context9T9An additional context added to the event context
context10T10An additional context added to the event context
context11T11An additional context added to the event context
context12T12An additional context added to the event context
context13T13An additional context added to the event context
context14T14An additional context added to the event context
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TDataThe event data type
TInstanceThe instance type
T1T2T3T4T5T6T7T8T9T10T11T12T13T14
RaiseEvent<T, TInstance, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>(T, TInstance, Event, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, CancellationToken)
Raise a simple event on the state machine
public static Task RaiseEvent<T, TInstance, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>(this T machine, TInstance instance, Event @event, T1 context1, T2 context2, T3 context3, T4 context4, T5 context5, T6 context6, T7 context7, T8 context8, T9 context9, T10 context10, T11 context11, T12 context12, T13 context13, T14 context14, T15 context15, T16 context16, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class where T1 : class where T2 : class where T3 : class where T4 : class where T5 : class where T6 : class where T7 : class where T8 : class where T9 : class where T10 : class where T11 : class where T12 : class where T13 : class where T14 : class where T15 : class where T16 : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventEventThe event to raise
context1T1An additional context added to the event context
context2T2An additional context added to the event context
context3T3An additional context added to the event context
context4T4An additional context added to the event context
context5T5An additional context added to the event context
context6T6An additional context added to the event context
context7T7An additional context added to the event context
context8T8An additional context added to the event context
context9T9An additional context added to the event context
context10T10An additional context added to the event context
context11T11An additional context added to the event context
context12T12An additional context added to the event context
context13T13An additional context added to the event context
context14T14An additional context added to the event context
context15T15An additional context added to the event context
context16T16An additional context added to the event context
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TInstanceThe instance type
T1T2T3T4T5T6T7T8T9T10T11T12T13T14T15T16
RaiseEvent<T, TInstance, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>(T, TInstance, Func<T, Event>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, CancellationToken)
Raise a simple event on the state machine
public static Task RaiseEvent<T, TInstance, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>(this T machine, TInstance instance, Func<T, Event> eventSelector, T1 context1, T2 context2, T3 context3, T4 context4, T5 context5, T6 context6, T7 context7, T8 context8, T9 context9, T10 context10, T11 context11, T12 context12, T13 context13, T14 context14, T15 context15, T16 context16, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class where T1 : class where T2 : class where T3 : class where T4 : class where T5 : class where T6 : class where T7 : class where T8 : class where T9 : class where T10 : class where T11 : class where T12 : class where T13 : class where T14 : class where T15 : class where T16 : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventSelectorFunc<T, Event>Selector to the event on the state machine
context1T1An additional context added to the event context
context2T2An additional context added to the event context
context3T3An additional context added to the event context
context4T4An additional context added to the event context
context5T5An additional context added to the event context
context6T6An additional context added to the event context
context7T7An additional context added to the event context
context8T8An additional context added to the event context
context9T9An additional context added to the event context
context10T10An additional context added to the event context
context11T11An additional context added to the event context
context12T12An additional context added to the event context
context13T13An additional context added to the event context
context14T14An additional context added to the event context
context15T15An additional context added to the event context
context16T16An additional context added to the event context
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TInstanceThe instance type
T1T2T3T4T5T6T7T8T9T10T11T12T13T14T15T16
RaiseEvent<T, TData, TInstance, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>(T, TInstance, Event<TData>, TData, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, CancellationToken)
Raise a data event on the state machine
public static Task RaiseEvent<T, TData, TInstance, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>(this T machine, TInstance instance, Event<TData> @event, TData data, T1 context1, T2 context2, T3 context3, T4 context4, T5 context5, T6 context6, T7 context7, T8 context8, T9 context9, T10 context10, T11 context11, T12 context12, T13 context13, T14 context14, T15 context15, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class where T1 : class where T2 : class where T3 : class where T4 : class where T5 : class where T6 : class where T7 : class where T8 : class where T9 : class where T10 : class where T11 : class where T12 : class where T13 : class where T14 : class where T15 : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventEvent<TData>The event to raise
dataTDataThe event data
context1T1An additional context added to the event context
context2T2An additional context added to the event context
context3T3An additional context added to the event context
context4T4An additional context added to the event context
context5T5An additional context added to the event context
context6T6An additional context added to the event context
context7T7An additional context added to the event context
context8T8An additional context added to the event context
context9T9An additional context added to the event context
context10T10An additional context added to the event context
context11T11An additional context added to the event context
context12T12An additional context added to the event context
context13T13An additional context added to the event context
context14T14An additional context added to the event context
context15T15An additional context added to the event context
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TDataThe event data type
TInstanceThe instance type
T1T2T3T4T5T6T7T8T9T10T11T12T13T14T15
RaiseEvent<T, TData, TInstance, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>(T, TInstance, Func<T, Event<TData>>, TData, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, CancellationToken)
Raise a data event on the state machine
public static Task RaiseEvent<T, TData, TInstance, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>(this T machine, TInstance instance, Func<T, Event<TData>> eventSelector, TData data, T1 context1, T2 context2, T3 context3, T4 context4, T5 context5, T6 context6, T7 context7, T8 context8, T9 context9, T10 context10, T11 context11, T12 context12, T13 context13, T14 context14, T15 context15, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class where T1 : class where T2 : class where T3 : class where T4 : class where T5 : class where T6 : class where T7 : class where T8 : class where T9 : class where T10 : class where T11 : class where T12 : class where T13 : class where T14 : class where T15 : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventSelectorFunc<T, Event<TData>>Selector to the event on the state machine
dataTDataThe event data
context1T1An additional context added to the event context
context2T2An additional context added to the event context
context3T3An additional context added to the event context
context4T4An additional context added to the event context
context5T5An additional context added to the event context
context6T6An additional context added to the event context
context7T7An additional context added to the event context
context8T8An additional context added to the event context
context9T9An additional context added to the event context
context10T10An additional context added to the event context
context11T11An additional context added to the event context
context12T12An additional context added to the event context
context13T13An additional context added to the event context
context14T14An additional context added to the event context
context15T15An additional context added to the event context
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TDataThe event data type
TInstanceThe instance type
T1T2T3T4T5T6T7T8T9T10T11T12T13T14T15
RaiseEvent<T, TData, TInstance, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>(T, TInstance, Event<TData>, TData, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, CancellationToken)
Raise a data event on the state machine
public static Task RaiseEvent<T, TData, TInstance, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>(this T machine, TInstance instance, Event<TData> @event, TData data, T1 context1, T2 context2, T3 context3, T4 context4, T5 context5, T6 context6, T7 context7, T8 context8, T9 context9, T10 context10, T11 context11, T12 context12, T13 context13, T14 context14, T15 context15, T16 context16, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class where T1 : class where T2 : class where T3 : class where T4 : class where T5 : class where T6 : class where T7 : class where T8 : class where T9 : class where T10 : class where T11 : class where T12 : class where T13 : class where T14 : class where T15 : class where T16 : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventEvent<TData>The event to raise
dataTDataThe event data
context1T1An additional context added to the event context
context2T2An additional context added to the event context
context3T3An additional context added to the event context
context4T4An additional context added to the event context
context5T5An additional context added to the event context
context6T6An additional context added to the event context
context7T7An additional context added to the event context
context8T8An additional context added to the event context
context9T9An additional context added to the event context
context10T10An additional context added to the event context
context11T11An additional context added to the event context
context12T12An additional context added to the event context
context13T13An additional context added to the event context
context14T14An additional context added to the event context
context15T15An additional context added to the event context
context16T16An additional context added to the event context
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TDataThe event data type
TInstanceThe instance type
T1T2T3T4T5T6T7T8T9T10T11T12T13T14T15T16
RaiseEvent<T, TData, TInstance, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>(T, TInstance, Func<T, Event<TData>>, TData, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, CancellationToken)
Raise a data event on the state machine
public static Task RaiseEvent<T, TData, TInstance, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>(this T machine, TInstance instance, Func<T, Event<TData>> eventSelector, TData data, T1 context1, T2 context2, T3 context3, T4 context4, T5 context5, T6 context6, T7 context7, T8 context8, T9 context9, T10 context10, T11 context11, T12 context12, T13 context13, T14 context14, T15 context15, T16 context16, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class where T1 : class where T2 : class where T3 : class where T4 : class where T5 : class where T6 : class where T7 : class where T8 : class where T9 : class where T10 : class where T11 : class where T12 : class where T13 : class where T14 : class where T15 : class where T16 : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventSelectorFunc<T, Event<TData>>Selector to the event on the state machine
dataTDataThe event data
context1T1An additional context added to the event context
context2T2An additional context added to the event context
context3T3An additional context added to the event context
context4T4An additional context added to the event context
context5T5An additional context added to the event context
context6T6An additional context added to the event context
context7T7An additional context added to the event context
context8T8An additional context added to the event context
context9T9An additional context added to the event context
context10T10An additional context added to the event context
context11T11An additional context added to the event context
context12T12An additional context added to the event context
context13T13An additional context added to the event context
context14T14An additional context added to the event context
context15T15An additional context added to the event context
context16T16An additional context added to the event context
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TDataThe event data type
TInstanceThe instance type
T1T2T3T4T5T6T7T8T9T10T11T12T13T14T15T16
RaiseEvent<T, TInstance>(T, TInstance, Event, CancellationToken)
Raise a simple event on the state machine
public static Task RaiseEvent<T, TInstance>(this T machine, TInstance instance, Event @event, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventEventThe event to raise
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TInstanceThe instance type
RaiseEvent<T, TInstance>(T, TInstance, Func<T, Event>, CancellationToken)
Raise a simple event on the state machine
public static Task RaiseEvent<T, TInstance>(this T machine, TInstance instance, Func<T, Event> eventSelector, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventSelectorFunc<T, Event>Selector to the event on the state machine
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TInstanceThe instance type
RaiseEvent<T, TInstance, T1>(T, TInstance, Event, T1, CancellationToken)
Raise a simple event on the state machine
public static Task RaiseEvent<T, TInstance, T1>(this T machine, TInstance instance, Event @event, T1 context1, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class where T1 : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventEventThe event to raise
context1T1An additional context added to the event context
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TInstanceThe instance type
T1
RaiseEvent<T, TInstance, T1>(T, TInstance, Func<T, Event>, T1, CancellationToken)
Raise a simple event on the state machine
public static Task RaiseEvent<T, TInstance, T1>(this T machine, TInstance instance, Func<T, Event> eventSelector, T1 context1, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class where T1 : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventSelectorFunc<T, Event>Selector to the event on the state machine
context1T1An additional context added to the event context
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TInstanceThe instance type
T1
RaiseEvent<T, TData, TInstance>(T, TInstance, Event<TData>, TData, CancellationToken)
Raise a data event on the state machine
public static Task RaiseEvent<T, TData, TInstance>(this T machine, TInstance instance, Event<TData> @event, TData data, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventEvent<TData>The event to raise
dataTDataThe event data
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TDataThe event data type
TInstanceThe instance type
RaiseEvent<T, TData, TInstance>(T, TInstance, Func<T, Event<TData>>, TData, CancellationToken)
Raise a data event on the state machine
public static Task RaiseEvent<T, TData, TInstance>(this T machine, TInstance instance, Func<T, Event<TData>> eventSelector, TData data, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventSelectorFunc<T, Event<TData>>Selector to the event on the state machine
dataTDataThe event data
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TDataThe event data type
TInstanceThe instance type
RaiseEvent<T, TInstance, T1, T2>(T, TInstance, Event, T1, T2, CancellationToken)
Raise a simple event on the state machine
public static Task RaiseEvent<T, TInstance, T1, T2>(this T machine, TInstance instance, Event @event, T1 context1, T2 context2, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class where T1 : class where T2 : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventEventThe event to raise
context1T1An additional context added to the event context
context2T2An additional context added to the event context
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TInstanceThe instance type
T1T2
RaiseEvent<T, TInstance, T1, T2>(T, TInstance, Func<T, Event>, T1, T2, CancellationToken)
Raise a simple event on the state machine
public static Task RaiseEvent<T, TInstance, T1, T2>(this T machine, TInstance instance, Func<T, Event> eventSelector, T1 context1, T2 context2, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class where T1 : class where T2 : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventSelectorFunc<T, Event>Selector to the event on the state machine
context1T1An additional context added to the event context
context2T2An additional context added to the event context
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TInstanceThe instance type
T1T2
RaiseEvent<T, TData, TInstance, T1>(T, TInstance, Event<TData>, TData, T1, CancellationToken)
Raise a data event on the state machine
public static Task RaiseEvent<T, TData, TInstance, T1>(this T machine, TInstance instance, Event<TData> @event, TData data, T1 context1, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class where T1 : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventEvent<TData>The event to raise
dataTDataThe event data
context1T1An additional context added to the event context
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TDataThe event data type
TInstanceThe instance type
T1
RaiseEvent<T, TData, TInstance, T1>(T, TInstance, Func<T, Event<TData>>, TData, T1, CancellationToken)
Raise a data event on the state machine
public static Task RaiseEvent<T, TData, TInstance, T1>(this T machine, TInstance instance, Func<T, Event<TData>> eventSelector, TData data, T1 context1, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class where T1 : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventSelectorFunc<T, Event<TData>>Selector to the event on the state machine
dataTDataThe event data
context1T1An additional context added to the event context
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TDataThe event data type
TInstanceThe instance type
T1
RaiseEvent<T, TInstance, T1, T2, T3>(T, TInstance, Event, T1, T2, T3, CancellationToken)
Raise a simple event on the state machine
public static Task RaiseEvent<T, TInstance, T1, T2, T3>(this T machine, TInstance instance, Event @event, T1 context1, T2 context2, T3 context3, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class where T1 : class where T2 : class where T3 : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventEventThe event to raise
context1T1An additional context added to the event context
context2T2An additional context added to the event context
context3T3An additional context added to the event context
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TInstanceThe instance type
T1T2T3
RaiseEvent<T, TInstance, T1, T2, T3>(T, TInstance, Func<T, Event>, T1, T2, T3, CancellationToken)
Raise a simple event on the state machine
public static Task RaiseEvent<T, TInstance, T1, T2, T3>(this T machine, TInstance instance, Func<T, Event> eventSelector, T1 context1, T2 context2, T3 context3, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class where T1 : class where T2 : class where T3 : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventSelectorFunc<T, Event>Selector to the event on the state machine
context1T1An additional context added to the event context
context2T2An additional context added to the event context
context3T3An additional context added to the event context
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TInstanceThe instance type
T1T2T3
RaiseEvent<T, TData, TInstance, T1, T2>(T, TInstance, Event<TData>, TData, T1, T2, CancellationToken)
Raise a data event on the state machine
public static Task RaiseEvent<T, TData, TInstance, T1, T2>(this T machine, TInstance instance, Event<TData> @event, TData data, T1 context1, T2 context2, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class where T1 : class where T2 : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventEvent<TData>The event to raise
dataTDataThe event data
context1T1An additional context added to the event context
context2T2An additional context added to the event context
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TDataThe event data type
TInstanceThe instance type
T1T2
RaiseEvent<T, TData, TInstance, T1, T2>(T, TInstance, Func<T, Event<TData>>, TData, T1, T2, CancellationToken)
Raise a data event on the state machine
public static Task RaiseEvent<T, TData, TInstance, T1, T2>(this T machine, TInstance instance, Func<T, Event<TData>> eventSelector, TData data, T1 context1, T2 context2, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class where T1 : class where T2 : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventSelectorFunc<T, Event<TData>>Selector to the event on the state machine
dataTDataThe event data
context1T1An additional context added to the event context
context2T2An additional context added to the event context
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TDataThe event data type
TInstanceThe instance type
T1T2
RaiseEvent<T, TInstance, T1, T2, T3, T4>(T, TInstance, Event, T1, T2, T3, T4, CancellationToken)
Raise a simple event on the state machine
public static Task RaiseEvent<T, TInstance, T1, T2, T3, T4>(this T machine, TInstance instance, Event @event, T1 context1, T2 context2, T3 context3, T4 context4, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class where T1 : class where T2 : class where T3 : class where T4 : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventEventThe event to raise
context1T1An additional context added to the event context
context2T2An additional context added to the event context
context3T3An additional context added to the event context
context4T4An additional context added to the event context
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TInstanceThe instance type
T1T2T3T4
RaiseEvent<T, TInstance, T1, T2, T3, T4>(T, TInstance, Func<T, Event>, T1, T2, T3, T4, CancellationToken)
Raise a simple event on the state machine
public static Task RaiseEvent<T, TInstance, T1, T2, T3, T4>(this T machine, TInstance instance, Func<T, Event> eventSelector, T1 context1, T2 context2, T3 context3, T4 context4, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class where T1 : class where T2 : class where T3 : class where T4 : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventSelectorFunc<T, Event>Selector to the event on the state machine
context1T1An additional context added to the event context
context2T2An additional context added to the event context
context3T3An additional context added to the event context
context4T4An additional context added to the event context
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TInstanceThe instance type
T1T2T3T4
RaiseEvent<T, TData, TInstance, T1, T2, T3>(T, TInstance, Event<TData>, TData, T1, T2, T3, CancellationToken)
Raise a data event on the state machine
public static Task RaiseEvent<T, TData, TInstance, T1, T2, T3>(this T machine, TInstance instance, Event<TData> @event, TData data, T1 context1, T2 context2, T3 context3, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class where T1 : class where T2 : class where T3 : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventEvent<TData>The event to raise
dataTDataThe event data
context1T1An additional context added to the event context
context2T2An additional context added to the event context
context3T3An additional context added to the event context
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TDataThe event data type
TInstanceThe instance type
T1T2T3
RaiseEvent<T, TData, TInstance, T1, T2, T3>(T, TInstance, Func<T, Event<TData>>, TData, T1, T2, T3, CancellationToken)
Raise a data event on the state machine
public static Task RaiseEvent<T, TData, TInstance, T1, T2, T3>(this T machine, TInstance instance, Func<T, Event<TData>> eventSelector, TData data, T1 context1, T2 context2, T3 context3, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class where T1 : class where T2 : class where T3 : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventSelectorFunc<T, Event<TData>>Selector to the event on the state machine
dataTDataThe event data
context1T1An additional context added to the event context
context2T2An additional context added to the event context
context3T3An additional context added to the event context
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TDataThe event data type
TInstanceThe instance type
T1T2T3
RaiseEvent<T, TInstance, T1, T2, T3, T4, T5>(T, TInstance, Event, T1, T2, T3, T4, T5, CancellationToken)
Raise a simple event on the state machine
public static Task RaiseEvent<T, TInstance, T1, T2, T3, T4, T5>(this T machine, TInstance instance, Event @event, T1 context1, T2 context2, T3 context3, T4 context4, T5 context5, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class where T1 : class where T2 : class where T3 : class where T4 : class where T5 : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventEventThe event to raise
context1T1An additional context added to the event context
context2T2An additional context added to the event context
context3T3An additional context added to the event context
context4T4An additional context added to the event context
context5T5An additional context added to the event context
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TInstanceThe instance type
T1T2T3T4T5
RaiseEvent<T, TInstance, T1, T2, T3, T4, T5>(T, TInstance, Func<T, Event>, T1, T2, T3, T4, T5, CancellationToken)
Raise a simple event on the state machine
public static Task RaiseEvent<T, TInstance, T1, T2, T3, T4, T5>(this T machine, TInstance instance, Func<T, Event> eventSelector, T1 context1, T2 context2, T3 context3, T4 context4, T5 context5, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class where T1 : class where T2 : class where T3 : class where T4 : class where T5 : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventSelectorFunc<T, Event>Selector to the event on the state machine
context1T1An additional context added to the event context
context2T2An additional context added to the event context
context3T3An additional context added to the event context
context4T4An additional context added to the event context
context5T5An additional context added to the event context
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TInstanceThe instance type
T1T2T3T4T5
RaiseEvent<T, TData, TInstance, T1, T2, T3, T4>(T, TInstance, Event<TData>, TData, T1, T2, T3, T4, CancellationToken)
Raise a data event on the state machine
public static Task RaiseEvent<T, TData, TInstance, T1, T2, T3, T4>(this T machine, TInstance instance, Event<TData> @event, TData data, T1 context1, T2 context2, T3 context3, T4 context4, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class where T1 : class where T2 : class where T3 : class where T4 : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventEvent<TData>The event to raise
dataTDataThe event data
context1T1An additional context added to the event context
context2T2An additional context added to the event context
context3T3An additional context added to the event context
context4T4An additional context added to the event context
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TDataThe event data type
TInstanceThe instance type
T1T2T3T4
RaiseEvent<T, TData, TInstance, T1, T2, T3, T4>(T, TInstance, Func<T, Event<TData>>, TData, T1, T2, T3, T4, CancellationToken)
Raise a data event on the state machine
public static Task RaiseEvent<T, TData, TInstance, T1, T2, T3, T4>(this T machine, TInstance instance, Func<T, Event<TData>> eventSelector, TData data, T1 context1, T2 context2, T3 context3, T4 context4, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class where T1 : class where T2 : class where T3 : class where T4 : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventSelectorFunc<T, Event<TData>>Selector to the event on the state machine
dataTDataThe event data
context1T1An additional context added to the event context
context2T2An additional context added to the event context
context3T3An additional context added to the event context
context4T4An additional context added to the event context
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TDataThe event data type
TInstanceThe instance type
T1T2T3T4
RaiseEvent<T, TInstance, T1, T2, T3, T4, T5, T6>(T, TInstance, Event, T1, T2, T3, T4, T5, T6, CancellationToken)
Raise a simple event on the state machine
public static Task RaiseEvent<T, TInstance, T1, T2, T3, T4, T5, T6>(this T machine, TInstance instance, Event @event, T1 context1, T2 context2, T3 context3, T4 context4, T5 context5, T6 context6, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class where T1 : class where T2 : class where T3 : class where T4 : class where T5 : class where T6 : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventEventThe event to raise
context1T1An additional context added to the event context
context2T2An additional context added to the event context
context3T3An additional context added to the event context
context4T4An additional context added to the event context
context5T5An additional context added to the event context
context6T6An additional context added to the event context
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TInstanceThe instance type
T1T2T3T4T5T6
RaiseEvent<T, TInstance, T1, T2, T3, T4, T5, T6>(T, TInstance, Func<T, Event>, T1, T2, T3, T4, T5, T6, CancellationToken)
Raise a simple event on the state machine
public static Task RaiseEvent<T, TInstance, T1, T2, T3, T4, T5, T6>(this T machine, TInstance instance, Func<T, Event> eventSelector, T1 context1, T2 context2, T3 context3, T4 context4, T5 context5, T6 context6, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class where T1 : class where T2 : class where T3 : class where T4 : class where T5 : class where T6 : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventSelectorFunc<T, Event>Selector to the event on the state machine
context1T1An additional context added to the event context
context2T2An additional context added to the event context
context3T3An additional context added to the event context
context4T4An additional context added to the event context
context5T5An additional context added to the event context
context6T6An additional context added to the event context
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TInstanceThe instance type
T1T2T3T4T5T6
RaiseEvent<T, TData, TInstance, T1, T2, T3, T4, T5>(T, TInstance, Event<TData>, TData, T1, T2, T3, T4, T5, CancellationToken)
Raise a data event on the state machine
public static Task RaiseEvent<T, TData, TInstance, T1, T2, T3, T4, T5>(this T machine, TInstance instance, Event<TData> @event, TData data, T1 context1, T2 context2, T3 context3, T4 context4, T5 context5, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class where T1 : class where T2 : class where T3 : class where T4 : class where T5 : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventEvent<TData>The event to raise
dataTDataThe event data
context1T1An additional context added to the event context
context2T2An additional context added to the event context
context3T3An additional context added to the event context
context4T4An additional context added to the event context
context5T5An additional context added to the event context
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TDataThe event data type
TInstanceThe instance type
T1T2T3T4T5
RaiseEvent<T, TData, TInstance, T1, T2, T3, T4, T5>(T, TInstance, Func<T, Event<TData>>, TData, T1, T2, T3, T4, T5, CancellationToken)
Raise a data event on the state machine
public static Task RaiseEvent<T, TData, TInstance, T1, T2, T3, T4, T5>(this T machine, TInstance instance, Func<T, Event<TData>> eventSelector, TData data, T1 context1, T2 context2, T3 context3, T4 context4, T5 context5, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class where T1 : class where T2 : class where T3 : class where T4 : class where T5 : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventSelectorFunc<T, Event<TData>>Selector to the event on the state machine
dataTDataThe event data
context1T1An additional context added to the event context
context2T2An additional context added to the event context
context3T3An additional context added to the event context
context4T4An additional context added to the event context
context5T5An additional context added to the event context
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TDataThe event data type
TInstanceThe instance type
T1T2T3T4T5
RaiseEvent<T, TInstance, T1, T2, T3, T4, T5, T6, T7>(T, TInstance, Event, T1, T2, T3, T4, T5, T6, T7, CancellationToken)
Raise a simple event on the state machine
public static Task RaiseEvent<T, TInstance, T1, T2, T3, T4, T5, T6, T7>(this T machine, TInstance instance, Event @event, T1 context1, T2 context2, T3 context3, T4 context4, T5 context5, T6 context6, T7 context7, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class where T1 : class where T2 : class where T3 : class where T4 : class where T5 : class where T6 : class where T7 : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventEventThe event to raise
context1T1An additional context added to the event context
context2T2An additional context added to the event context
context3T3An additional context added to the event context
context4T4An additional context added to the event context
context5T5An additional context added to the event context
context6T6An additional context added to the event context
context7T7An additional context added to the event context
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TInstanceThe instance type
T1T2T3T4T5T6T7
RaiseEvent<T, TInstance, T1, T2, T3, T4, T5, T6, T7>(T, TInstance, Func<T, Event>, T1, T2, T3, T4, T5, T6, T7, CancellationToken)
Raise a simple event on the state machine
public static Task RaiseEvent<T, TInstance, T1, T2, T3, T4, T5, T6, T7>(this T machine, TInstance instance, Func<T, Event> eventSelector, T1 context1, T2 context2, T3 context3, T4 context4, T5 context5, T6 context6, T7 context7, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class where T1 : class where T2 : class where T3 : class where T4 : class where T5 : class where T6 : class where T7 : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventSelectorFunc<T, Event>Selector to the event on the state machine
context1T1An additional context added to the event context
context2T2An additional context added to the event context
context3T3An additional context added to the event context
context4T4An additional context added to the event context
context5T5An additional context added to the event context
context6T6An additional context added to the event context
context7T7An additional context added to the event context
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TInstanceThe instance type
T1T2T3T4T5T6T7
RaiseEvent<T, TData, TInstance, T1, T2, T3, T4, T5, T6>(T, TInstance, Event<TData>, TData, T1, T2, T3, T4, T5, T6, CancellationToken)
Raise a data event on the state machine
public static Task RaiseEvent<T, TData, TInstance, T1, T2, T3, T4, T5, T6>(this T machine, TInstance instance, Event<TData> @event, TData data, T1 context1, T2 context2, T3 context3, T4 context4, T5 context5, T6 context6, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class where T1 : class where T2 : class where T3 : class where T4 : class where T5 : class where T6 : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventEvent<TData>The event to raise
dataTDataThe event data
context1T1An additional context added to the event context
context2T2An additional context added to the event context
context3T3An additional context added to the event context
context4T4An additional context added to the event context
context5T5An additional context added to the event context
context6T6An additional context added to the event context
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TDataThe event data type
TInstanceThe instance type
T1T2T3T4T5T6
RaiseEvent<T, TData, TInstance, T1, T2, T3, T4, T5, T6>(T, TInstance, Func<T, Event<TData>>, TData, T1, T2, T3, T4, T5, T6, CancellationToken)
Raise a data event on the state machine
public static Task RaiseEvent<T, TData, TInstance, T1, T2, T3, T4, T5, T6>(this T machine, TInstance instance, Func<T, Event<TData>> eventSelector, TData data, T1 context1, T2 context2, T3 context3, T4 context4, T5 context5, T6 context6, CancellationToken cancellationToken = default) where T : class, StateMachine, StateMachine<TInstance> where TInstance : class where T1 : class where T2 : class where T3 : class where T4 : class where T5 : class where T6 : class
Parameters
machineTThe state machine
instanceTInstanceThe state machine instance
eventSelectorFunc<T, Event<TData>>Selector to the event on the state machine
dataTDataThe event data
context1T1An additional context added to the event context
context2T2An additional context added to the event context
context3T3An additional context added to the event context
context4T4An additional context added to the event context
context5T5An additional context added to the event context
context6T6An additional context added to the event context
cancellationTokenCancellationToken
Returns
Type Parameters
TThe state machine type
TDataThe event data type
TInstanceThe instance type
T1T2T3T4T5T6