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
machine
TThe state machine
instance
TInstanceThe state machine instance
event
EventThe event to raise
context1
T1An additional context added to the event context
context2
T2An additional context added to the event context
context3
T3An additional context added to the event context
context4
T4An additional context added to the event context
context5
T5An additional context added to the event context
context6
T6An additional context added to the event context
context7
T7An additional context added to the event context
context8
T8An additional context added to the event context
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TInstance
The instance type
T1
T2
T3
T4
T5
T6
T7
T8
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
machine
TThe state machine
instance
TInstanceThe state machine instance
eventSelector
Func<T, Event>Selector to the event on the state machine
context1
T1An additional context added to the event context
context2
T2An additional context added to the event context
context3
T3An additional context added to the event context
context4
T4An additional context added to the event context
context5
T5An additional context added to the event context
context6
T6An additional context added to the event context
context7
T7An additional context added to the event context
context8
T8An additional context added to the event context
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TInstance
The instance type
T1
T2
T3
T4
T5
T6
T7
T8
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
machine
TThe state machine
instance
TInstanceThe state machine instance
event
Event<TData>The event to raise
data
TDataThe event data
context1
T1An additional context added to the event context
context2
T2An additional context added to the event context
context3
T3An additional context added to the event context
context4
T4An additional context added to the event context
context5
T5An additional context added to the event context
context6
T6An additional context added to the event context
context7
T7An additional context added to the event context
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TData
The event data type
TInstance
The instance type
T1
T2
T3
T4
T5
T6
T7
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
machine
TThe state machine
instance
TInstanceThe state machine instance
eventSelector
Func<T, Event<TData>>Selector to the event on the state machine
data
TDataThe event data
context1
T1An additional context added to the event context
context2
T2An additional context added to the event context
context3
T3An additional context added to the event context
context4
T4An additional context added to the event context
context5
T5An additional context added to the event context
context6
T6An additional context added to the event context
context7
T7An additional context added to the event context
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TData
The event data type
TInstance
The instance type
T1
T2
T3
T4
T5
T6
T7
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
machine
TThe state machine
instance
TInstanceThe state machine instance
event
EventThe event to raise
context1
T1An additional context added to the event context
context2
T2An additional context added to the event context
context3
T3An additional context added to the event context
context4
T4An additional context added to the event context
context5
T5An additional context added to the event context
context6
T6An additional context added to the event context
context7
T7An additional context added to the event context
context8
T8An additional context added to the event context
context9
T9An additional context added to the event context
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TInstance
The instance type
T1
T2
T3
T4
T5
T6
T7
T8
T9
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
machine
TThe state machine
instance
TInstanceThe state machine instance
eventSelector
Func<T, Event>Selector to the event on the state machine
context1
T1An additional context added to the event context
context2
T2An additional context added to the event context
context3
T3An additional context added to the event context
context4
T4An additional context added to the event context
context5
T5An additional context added to the event context
context6
T6An additional context added to the event context
context7
T7An additional context added to the event context
context8
T8An additional context added to the event context
context9
T9An additional context added to the event context
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TInstance
The instance type
T1
T2
T3
T4
T5
T6
T7
T8
T9
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
machine
TThe state machine
instance
TInstanceThe state machine instance
event
Event<TData>The event to raise
data
TDataThe event data
context1
T1An additional context added to the event context
context2
T2An additional context added to the event context
context3
T3An additional context added to the event context
context4
T4An additional context added to the event context
context5
T5An additional context added to the event context
context6
T6An additional context added to the event context
context7
T7An additional context added to the event context
context8
T8An additional context added to the event context
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TData
The event data type
TInstance
The instance type
T1
T2
T3
T4
T5
T6
T7
T8
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
machine
TThe state machine
instance
TInstanceThe state machine instance
eventSelector
Func<T, Event<TData>>Selector to the event on the state machine
data
TDataThe event data
context1
T1An additional context added to the event context
context2
T2An additional context added to the event context
context3
T3An additional context added to the event context
context4
T4An additional context added to the event context
context5
T5An additional context added to the event context
context6
T6An additional context added to the event context
context7
T7An additional context added to the event context
context8
T8An additional context added to the event context
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TData
The event data type
TInstance
The instance type
T1
T2
T3
T4
T5
T6
T7
T8
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
machine
TThe state machine
instance
TInstanceThe state machine instance
event
EventThe event to raise
context1
T1An additional context added to the event context
context2
T2An additional context added to the event context
context3
T3An additional context added to the event context
context4
T4An additional context added to the event context
context5
T5An additional context added to the event context
context6
T6An additional context added to the event context
context7
T7An additional context added to the event context
context8
T8An additional context added to the event context
context9
T9An additional context added to the event context
context10
T10An additional context added to the event context
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TInstance
The instance type
T1
T2
T3
T4
T5
T6
T7
T8
T9
T10
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
machine
TThe state machine
instance
TInstanceThe state machine instance
eventSelector
Func<T, Event>Selector to the event on the state machine
context1
T1An additional context added to the event context
context2
T2An additional context added to the event context
context3
T3An additional context added to the event context
context4
T4An additional context added to the event context
context5
T5An additional context added to the event context
context6
T6An additional context added to the event context
context7
T7An additional context added to the event context
context8
T8An additional context added to the event context
context9
T9An additional context added to the event context
context10
T10An additional context added to the event context
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TInstance
The instance type
T1
T2
T3
T4
T5
T6
T7
T8
T9
T10
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
machine
TThe state machine
instance
TInstanceThe state machine instance
event
Event<TData>The event to raise
data
TDataThe event data
context1
T1An additional context added to the event context
context2
T2An additional context added to the event context
context3
T3An additional context added to the event context
context4
T4An additional context added to the event context
context5
T5An additional context added to the event context
context6
T6An additional context added to the event context
context7
T7An additional context added to the event context
context8
T8An additional context added to the event context
context9
T9An additional context added to the event context
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TData
The event data type
TInstance
The instance type
T1
T2
T3
T4
T5
T6
T7
T8
T9
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
machine
TThe state machine
instance
TInstanceThe state machine instance
eventSelector
Func<T, Event<TData>>Selector to the event on the state machine
data
TDataThe event data
context1
T1An additional context added to the event context
context2
T2An additional context added to the event context
context3
T3An additional context added to the event context
context4
T4An additional context added to the event context
context5
T5An additional context added to the event context
context6
T6An additional context added to the event context
context7
T7An additional context added to the event context
context8
T8An additional context added to the event context
context9
T9An additional context added to the event context
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TData
The event data type
TInstance
The instance type
T1
T2
T3
T4
T5
T6
T7
T8
T9
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
machine
TThe state machine
instance
TInstanceThe state machine instance
event
EventThe event to raise
context1
T1An additional context added to the event context
context2
T2An additional context added to the event context
context3
T3An additional context added to the event context
context4
T4An additional context added to the event context
context5
T5An additional context added to the event context
context6
T6An additional context added to the event context
context7
T7An additional context added to the event context
context8
T8An additional context added to the event context
context9
T9An additional context added to the event context
context10
T10An additional context added to the event context
context11
T11An additional context added to the event context
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TInstance
The instance type
T1
T2
T3
T4
T5
T6
T7
T8
T9
T10
T11
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
machine
TThe state machine
instance
TInstanceThe state machine instance
eventSelector
Func<T, Event>Selector to the event on the state machine
context1
T1An additional context added to the event context
context2
T2An additional context added to the event context
context3
T3An additional context added to the event context
context4
T4An additional context added to the event context
context5
T5An additional context added to the event context
context6
T6An additional context added to the event context
context7
T7An additional context added to the event context
context8
T8An additional context added to the event context
context9
T9An additional context added to the event context
context10
T10An additional context added to the event context
context11
T11An additional context added to the event context
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TInstance
The instance type
T1
T2
T3
T4
T5
T6
T7
T8
T9
T10
T11
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
machine
TThe state machine
instance
TInstanceThe state machine instance
event
Event<TData>The event to raise
data
TDataThe event data
context1
T1An additional context added to the event context
context2
T2An additional context added to the event context
context3
T3An additional context added to the event context
context4
T4An additional context added to the event context
context5
T5An additional context added to the event context
context6
T6An additional context added to the event context
context7
T7An additional context added to the event context
context8
T8An additional context added to the event context
context9
T9An additional context added to the event context
context10
T10An additional context added to the event context
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TData
The event data type
TInstance
The instance type
T1
T2
T3
T4
T5
T6
T7
T8
T9
T10
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
machine
TThe state machine
instance
TInstanceThe state machine instance
eventSelector
Func<T, Event<TData>>Selector to the event on the state machine
data
TDataThe event data
context1
T1An additional context added to the event context
context2
T2An additional context added to the event context
context3
T3An additional context added to the event context
context4
T4An additional context added to the event context
context5
T5An additional context added to the event context
context6
T6An additional context added to the event context
context7
T7An additional context added to the event context
context8
T8An additional context added to the event context
context9
T9An additional context added to the event context
context10
T10An additional context added to the event context
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TData
The event data type
TInstance
The instance type
T1
T2
T3
T4
T5
T6
T7
T8
T9
T10
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
machine
TThe state machine
instance
TInstanceThe state machine instance
event
EventThe event to raise
context1
T1An additional context added to the event context
context2
T2An additional context added to the event context
context3
T3An additional context added to the event context
context4
T4An additional context added to the event context
context5
T5An additional context added to the event context
context6
T6An additional context added to the event context
context7
T7An additional context added to the event context
context8
T8An additional context added to the event context
context9
T9An additional context added to the event context
context10
T10An additional context added to the event context
context11
T11An additional context added to the event context
context12
T12An additional context added to the event context
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TInstance
The instance type
T1
T2
T3
T4
T5
T6
T7
T8
T9
T10
T11
T12
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
machine
TThe state machine
instance
TInstanceThe state machine instance
eventSelector
Func<T, Event>Selector to the event on the state machine
context1
T1An additional context added to the event context
context2
T2An additional context added to the event context
context3
T3An additional context added to the event context
context4
T4An additional context added to the event context
context5
T5An additional context added to the event context
context6
T6An additional context added to the event context
context7
T7An additional context added to the event context
context8
T8An additional context added to the event context
context9
T9An additional context added to the event context
context10
T10An additional context added to the event context
context11
T11An additional context added to the event context
context12
T12An additional context added to the event context
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TInstance
The instance type
T1
T2
T3
T4
T5
T6
T7
T8
T9
T10
T11
T12
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
machine
TThe state machine
instance
TInstanceThe state machine instance
event
Event<TData>The event to raise
data
TDataThe event data
context1
T1An additional context added to the event context
context2
T2An additional context added to the event context
context3
T3An additional context added to the event context
context4
T4An additional context added to the event context
context5
T5An additional context added to the event context
context6
T6An additional context added to the event context
context7
T7An additional context added to the event context
context8
T8An additional context added to the event context
context9
T9An additional context added to the event context
context10
T10An additional context added to the event context
context11
T11An additional context added to the event context
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TData
The event data type
TInstance
The instance type
T1
T2
T3
T4
T5
T6
T7
T8
T9
T10
T11
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
machine
TThe state machine
instance
TInstanceThe state machine instance
eventSelector
Func<T, Event<TData>>Selector to the event on the state machine
data
TDataThe event data
context1
T1An additional context added to the event context
context2
T2An additional context added to the event context
context3
T3An additional context added to the event context
context4
T4An additional context added to the event context
context5
T5An additional context added to the event context
context6
T6An additional context added to the event context
context7
T7An additional context added to the event context
context8
T8An additional context added to the event context
context9
T9An additional context added to the event context
context10
T10An additional context added to the event context
context11
T11An additional context added to the event context
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TData
The event data type
TInstance
The instance type
T1
T2
T3
T4
T5
T6
T7
T8
T9
T10
T11
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
machine
TThe state machine
instance
TInstanceThe state machine instance
event
EventThe event to raise
context1
T1An additional context added to the event context
context2
T2An additional context added to the event context
context3
T3An additional context added to the event context
context4
T4An additional context added to the event context
context5
T5An additional context added to the event context
context6
T6An additional context added to the event context
context7
T7An additional context added to the event context
context8
T8An additional context added to the event context
context9
T9An additional context added to the event context
context10
T10An additional context added to the event context
context11
T11An additional context added to the event context
context12
T12An additional context added to the event context
context13
T13An additional context added to the event context
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TInstance
The instance type
T1
T2
T3
T4
T5
T6
T7
T8
T9
T10
T11
T12
T13
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
machine
TThe state machine
instance
TInstanceThe state machine instance
eventSelector
Func<T, Event>Selector to the event on the state machine
context1
T1An additional context added to the event context
context2
T2An additional context added to the event context
context3
T3An additional context added to the event context
context4
T4An additional context added to the event context
context5
T5An additional context added to the event context
context6
T6An additional context added to the event context
context7
T7An additional context added to the event context
context8
T8An additional context added to the event context
context9
T9An additional context added to the event context
context10
T10An additional context added to the event context
context11
T11An additional context added to the event context
context12
T12An additional context added to the event context
context13
T13An additional context added to the event context
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TInstance
The instance type
T1
T2
T3
T4
T5
T6
T7
T8
T9
T10
T11
T12
T13
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
machine
TThe state machine
instance
TInstanceThe state machine instance
event
Event<TData>The event to raise
data
TDataThe event data
context1
T1An additional context added to the event context
context2
T2An additional context added to the event context
context3
T3An additional context added to the event context
context4
T4An additional context added to the event context
context5
T5An additional context added to the event context
context6
T6An additional context added to the event context
context7
T7An additional context added to the event context
context8
T8An additional context added to the event context
context9
T9An additional context added to the event context
context10
T10An additional context added to the event context
context11
T11An additional context added to the event context
context12
T12An additional context added to the event context
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TData
The event data type
TInstance
The instance type
T1
T2
T3
T4
T5
T6
T7
T8
T9
T10
T11
T12
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
machine
TThe state machine
instance
TInstanceThe state machine instance
eventSelector
Func<T, Event<TData>>Selector to the event on the state machine
data
TDataThe event data
context1
T1An additional context added to the event context
context2
T2An additional context added to the event context
context3
T3An additional context added to the event context
context4
T4An additional context added to the event context
context5
T5An additional context added to the event context
context6
T6An additional context added to the event context
context7
T7An additional context added to the event context
context8
T8An additional context added to the event context
context9
T9An additional context added to the event context
context10
T10An additional context added to the event context
context11
T11An additional context added to the event context
context12
T12An additional context added to the event context
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TData
The event data type
TInstance
The instance type
T1
T2
T3
T4
T5
T6
T7
T8
T9
T10
T11
T12
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
machine
TThe state machine
instance
TInstanceThe state machine instance
event
EventThe event to raise
context1
T1An additional context added to the event context
context2
T2An additional context added to the event context
context3
T3An additional context added to the event context
context4
T4An additional context added to the event context
context5
T5An additional context added to the event context
context6
T6An additional context added to the event context
context7
T7An additional context added to the event context
context8
T8An additional context added to the event context
context9
T9An additional context added to the event context
context10
T10An additional context added to the event context
context11
T11An additional context added to the event context
context12
T12An additional context added to the event context
context13
T13An additional context added to the event context
context14
T14An additional context added to the event context
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TInstance
The instance type
T1
T2
T3
T4
T5
T6
T7
T8
T9
T10
T11
T12
T13
T14
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
machine
TThe state machine
instance
TInstanceThe state machine instance
eventSelector
Func<T, Event>Selector to the event on the state machine
context1
T1An additional context added to the event context
context2
T2An additional context added to the event context
context3
T3An additional context added to the event context
context4
T4An additional context added to the event context
context5
T5An additional context added to the event context
context6
T6An additional context added to the event context
context7
T7An additional context added to the event context
context8
T8An additional context added to the event context
context9
T9An additional context added to the event context
context10
T10An additional context added to the event context
context11
T11An additional context added to the event context
context12
T12An additional context added to the event context
context13
T13An additional context added to the event context
context14
T14An additional context added to the event context
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TInstance
The instance type
T1
T2
T3
T4
T5
T6
T7
T8
T9
T10
T11
T12
T13
T14
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
machine
TThe state machine
instance
TInstanceThe state machine instance
event
Event<TData>The event to raise
data
TDataThe event data
context1
T1An additional context added to the event context
context2
T2An additional context added to the event context
context3
T3An additional context added to the event context
context4
T4An additional context added to the event context
context5
T5An additional context added to the event context
context6
T6An additional context added to the event context
context7
T7An additional context added to the event context
context8
T8An additional context added to the event context
context9
T9An additional context added to the event context
context10
T10An additional context added to the event context
context11
T11An additional context added to the event context
context12
T12An additional context added to the event context
context13
T13An additional context added to the event context
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TData
The event data type
TInstance
The instance type
T1
T2
T3
T4
T5
T6
T7
T8
T9
T10
T11
T12
T13
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
machine
TThe state machine
instance
TInstanceThe state machine instance
eventSelector
Func<T, Event<TData>>Selector to the event on the state machine
data
TDataThe event data
context1
T1An additional context added to the event context
context2
T2An additional context added to the event context
context3
T3An additional context added to the event context
context4
T4An additional context added to the event context
context5
T5An additional context added to the event context
context6
T6An additional context added to the event context
context7
T7An additional context added to the event context
context8
T8An additional context added to the event context
context9
T9An additional context added to the event context
context10
T10An additional context added to the event context
context11
T11An additional context added to the event context
context12
T12An additional context added to the event context
context13
T13An additional context added to the event context
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TData
The event data type
TInstance
The instance type
T1
T2
T3
T4
T5
T6
T7
T8
T9
T10
T11
T12
T13
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
machine
TThe state machine
instance
TInstanceThe state machine instance
event
EventThe event to raise
context1
T1An additional context added to the event context
context2
T2An additional context added to the event context
context3
T3An additional context added to the event context
context4
T4An additional context added to the event context
context5
T5An additional context added to the event context
context6
T6An additional context added to the event context
context7
T7An additional context added to the event context
context8
T8An additional context added to the event context
context9
T9An additional context added to the event context
context10
T10An additional context added to the event context
context11
T11An additional context added to the event context
context12
T12An additional context added to the event context
context13
T13An additional context added to the event context
context14
T14An additional context added to the event context
context15
T15An additional context added to the event context
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TInstance
The instance type
T1
T2
T3
T4
T5
T6
T7
T8
T9
T10
T11
T12
T13
T14
T15
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
machine
TThe state machine
instance
TInstanceThe state machine instance
eventSelector
Func<T, Event>Selector to the event on the state machine
context1
T1An additional context added to the event context
context2
T2An additional context added to the event context
context3
T3An additional context added to the event context
context4
T4An additional context added to the event context
context5
T5An additional context added to the event context
context6
T6An additional context added to the event context
context7
T7An additional context added to the event context
context8
T8An additional context added to the event context
context9
T9An additional context added to the event context
context10
T10An additional context added to the event context
context11
T11An additional context added to the event context
context12
T12An additional context added to the event context
context13
T13An additional context added to the event context
context14
T14An additional context added to the event context
context15
T15An additional context added to the event context
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TInstance
The instance type
T1
T2
T3
T4
T5
T6
T7
T8
T9
T10
T11
T12
T13
T14
T15
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
machine
TThe state machine
instance
TInstanceThe state machine instance
event
Event<TData>The event to raise
data
TDataThe event data
context1
T1An additional context added to the event context
context2
T2An additional context added to the event context
context3
T3An additional context added to the event context
context4
T4An additional context added to the event context
context5
T5An additional context added to the event context
context6
T6An additional context added to the event context
context7
T7An additional context added to the event context
context8
T8An additional context added to the event context
context9
T9An additional context added to the event context
context10
T10An additional context added to the event context
context11
T11An additional context added to the event context
context12
T12An additional context added to the event context
context13
T13An additional context added to the event context
context14
T14An additional context added to the event context
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TData
The event data type
TInstance
The instance type
T1
T2
T3
T4
T5
T6
T7
T8
T9
T10
T11
T12
T13
T14
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
machine
TThe state machine
instance
TInstanceThe state machine instance
eventSelector
Func<T, Event<TData>>Selector to the event on the state machine
data
TDataThe event data
context1
T1An additional context added to the event context
context2
T2An additional context added to the event context
context3
T3An additional context added to the event context
context4
T4An additional context added to the event context
context5
T5An additional context added to the event context
context6
T6An additional context added to the event context
context7
T7An additional context added to the event context
context8
T8An additional context added to the event context
context9
T9An additional context added to the event context
context10
T10An additional context added to the event context
context11
T11An additional context added to the event context
context12
T12An additional context added to the event context
context13
T13An additional context added to the event context
context14
T14An additional context added to the event context
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TData
The event data type
TInstance
The instance type
T1
T2
T3
T4
T5
T6
T7
T8
T9
T10
T11
T12
T13
T14
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
machine
TThe state machine
instance
TInstanceThe state machine instance
event
EventThe event to raise
context1
T1An additional context added to the event context
context2
T2An additional context added to the event context
context3
T3An additional context added to the event context
context4
T4An additional context added to the event context
context5
T5An additional context added to the event context
context6
T6An additional context added to the event context
context7
T7An additional context added to the event context
context8
T8An additional context added to the event context
context9
T9An additional context added to the event context
context10
T10An additional context added to the event context
context11
T11An additional context added to the event context
context12
T12An additional context added to the event context
context13
T13An additional context added to the event context
context14
T14An additional context added to the event context
context15
T15An additional context added to the event context
context16
T16An additional context added to the event context
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TInstance
The instance type
T1
T2
T3
T4
T5
T6
T7
T8
T9
T10
T11
T12
T13
T14
T15
T16
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
machine
TThe state machine
instance
TInstanceThe state machine instance
eventSelector
Func<T, Event>Selector to the event on the state machine
context1
T1An additional context added to the event context
context2
T2An additional context added to the event context
context3
T3An additional context added to the event context
context4
T4An additional context added to the event context
context5
T5An additional context added to the event context
context6
T6An additional context added to the event context
context7
T7An additional context added to the event context
context8
T8An additional context added to the event context
context9
T9An additional context added to the event context
context10
T10An additional context added to the event context
context11
T11An additional context added to the event context
context12
T12An additional context added to the event context
context13
T13An additional context added to the event context
context14
T14An additional context added to the event context
context15
T15An additional context added to the event context
context16
T16An additional context added to the event context
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TInstance
The instance type
T1
T2
T3
T4
T5
T6
T7
T8
T9
T10
T11
T12
T13
T14
T15
T16
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
machine
TThe state machine
instance
TInstanceThe state machine instance
event
Event<TData>The event to raise
data
TDataThe event data
context1
T1An additional context added to the event context
context2
T2An additional context added to the event context
context3
T3An additional context added to the event context
context4
T4An additional context added to the event context
context5
T5An additional context added to the event context
context6
T6An additional context added to the event context
context7
T7An additional context added to the event context
context8
T8An additional context added to the event context
context9
T9An additional context added to the event context
context10
T10An additional context added to the event context
context11
T11An additional context added to the event context
context12
T12An additional context added to the event context
context13
T13An additional context added to the event context
context14
T14An additional context added to the event context
context15
T15An additional context added to the event context
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TData
The event data type
TInstance
The instance type
T1
T2
T3
T4
T5
T6
T7
T8
T9
T10
T11
T12
T13
T14
T15
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
machine
TThe state machine
instance
TInstanceThe state machine instance
eventSelector
Func<T, Event<TData>>Selector to the event on the state machine
data
TDataThe event data
context1
T1An additional context added to the event context
context2
T2An additional context added to the event context
context3
T3An additional context added to the event context
context4
T4An additional context added to the event context
context5
T5An additional context added to the event context
context6
T6An additional context added to the event context
context7
T7An additional context added to the event context
context8
T8An additional context added to the event context
context9
T9An additional context added to the event context
context10
T10An additional context added to the event context
context11
T11An additional context added to the event context
context12
T12An additional context added to the event context
context13
T13An additional context added to the event context
context14
T14An additional context added to the event context
context15
T15An additional context added to the event context
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TData
The event data type
TInstance
The instance type
T1
T2
T3
T4
T5
T6
T7
T8
T9
T10
T11
T12
T13
T14
T15
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
machine
TThe state machine
instance
TInstanceThe state machine instance
event
Event<TData>The event to raise
data
TDataThe event data
context1
T1An additional context added to the event context
context2
T2An additional context added to the event context
context3
T3An additional context added to the event context
context4
T4An additional context added to the event context
context5
T5An additional context added to the event context
context6
T6An additional context added to the event context
context7
T7An additional context added to the event context
context8
T8An additional context added to the event context
context9
T9An additional context added to the event context
context10
T10An additional context added to the event context
context11
T11An additional context added to the event context
context12
T12An additional context added to the event context
context13
T13An additional context added to the event context
context14
T14An additional context added to the event context
context15
T15An additional context added to the event context
context16
T16An additional context added to the event context
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TData
The event data type
TInstance
The instance type
T1
T2
T3
T4
T5
T6
T7
T8
T9
T10
T11
T12
T13
T14
T15
T16
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
machine
TThe state machine
instance
TInstanceThe state machine instance
eventSelector
Func<T, Event<TData>>Selector to the event on the state machine
data
TDataThe event data
context1
T1An additional context added to the event context
context2
T2An additional context added to the event context
context3
T3An additional context added to the event context
context4
T4An additional context added to the event context
context5
T5An additional context added to the event context
context6
T6An additional context added to the event context
context7
T7An additional context added to the event context
context8
T8An additional context added to the event context
context9
T9An additional context added to the event context
context10
T10An additional context added to the event context
context11
T11An additional context added to the event context
context12
T12An additional context added to the event context
context13
T13An additional context added to the event context
context14
T14An additional context added to the event context
context15
T15An additional context added to the event context
context16
T16An additional context added to the event context
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TData
The event data type
TInstance
The instance type
T1
T2
T3
T4
T5
T6
T7
T8
T9
T10
T11
T12
T13
T14
T15
T16
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
machine
TThe state machine
instance
TInstanceThe state machine instance
event
EventThe event to raise
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TInstance
The 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
machine
TThe state machine
instance
TInstanceThe state machine instance
eventSelector
Func<T, Event>Selector to the event on the state machine
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TInstance
The 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
machine
TThe state machine
instance
TInstanceThe state machine instance
event
EventThe event to raise
context1
T1An additional context added to the event context
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TInstance
The 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
machine
TThe state machine
instance
TInstanceThe state machine instance
eventSelector
Func<T, Event>Selector to the event on the state machine
context1
T1An additional context added to the event context
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TInstance
The 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
machine
TThe state machine
instance
TInstanceThe state machine instance
event
Event<TData>The event to raise
data
TDataThe event data
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TData
The event data type
TInstance
The 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
machine
TThe state machine
instance
TInstanceThe state machine instance
eventSelector
Func<T, Event<TData>>Selector to the event on the state machine
data
TDataThe event data
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TData
The event data type
TInstance
The 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
machine
TThe state machine
instance
TInstanceThe state machine instance
event
EventThe event to raise
context1
T1An additional context added to the event context
context2
T2An additional context added to the event context
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TInstance
The instance type
T1
T2
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
machine
TThe state machine
instance
TInstanceThe state machine instance
eventSelector
Func<T, Event>Selector to the event on the state machine
context1
T1An additional context added to the event context
context2
T2An additional context added to the event context
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TInstance
The instance type
T1
T2
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
machine
TThe state machine
instance
TInstanceThe state machine instance
event
Event<TData>The event to raise
data
TDataThe event data
context1
T1An additional context added to the event context
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TData
The event data type
TInstance
The 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
machine
TThe state machine
instance
TInstanceThe state machine instance
eventSelector
Func<T, Event<TData>>Selector to the event on the state machine
data
TDataThe event data
context1
T1An additional context added to the event context
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TData
The event data type
TInstance
The 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
machine
TThe state machine
instance
TInstanceThe state machine instance
event
EventThe event to raise
context1
T1An additional context added to the event context
context2
T2An additional context added to the event context
context3
T3An additional context added to the event context
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TInstance
The instance type
T1
T2
T3
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
machine
TThe state machine
instance
TInstanceThe state machine instance
eventSelector
Func<T, Event>Selector to the event on the state machine
context1
T1An additional context added to the event context
context2
T2An additional context added to the event context
context3
T3An additional context added to the event context
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TInstance
The instance type
T1
T2
T3
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
machine
TThe state machine
instance
TInstanceThe state machine instance
event
Event<TData>The event to raise
data
TDataThe event data
context1
T1An additional context added to the event context
context2
T2An additional context added to the event context
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TData
The event data type
TInstance
The instance type
T1
T2
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
machine
TThe state machine
instance
TInstanceThe state machine instance
eventSelector
Func<T, Event<TData>>Selector to the event on the state machine
data
TDataThe event data
context1
T1An additional context added to the event context
context2
T2An additional context added to the event context
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TData
The event data type
TInstance
The instance type
T1
T2
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
machine
TThe state machine
instance
TInstanceThe state machine instance
event
EventThe event to raise
context1
T1An additional context added to the event context
context2
T2An additional context added to the event context
context3
T3An additional context added to the event context
context4
T4An additional context added to the event context
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TInstance
The instance type
T1
T2
T3
T4
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
machine
TThe state machine
instance
TInstanceThe state machine instance
eventSelector
Func<T, Event>Selector to the event on the state machine
context1
T1An additional context added to the event context
context2
T2An additional context added to the event context
context3
T3An additional context added to the event context
context4
T4An additional context added to the event context
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TInstance
The instance type
T1
T2
T3
T4
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
machine
TThe state machine
instance
TInstanceThe state machine instance
event
Event<TData>The event to raise
data
TDataThe event data
context1
T1An additional context added to the event context
context2
T2An additional context added to the event context
context3
T3An additional context added to the event context
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TData
The event data type
TInstance
The instance type
T1
T2
T3
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
machine
TThe state machine
instance
TInstanceThe state machine instance
eventSelector
Func<T, Event<TData>>Selector to the event on the state machine
data
TDataThe event data
context1
T1An additional context added to the event context
context2
T2An additional context added to the event context
context3
T3An additional context added to the event context
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TData
The event data type
TInstance
The instance type
T1
T2
T3
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
machine
TThe state machine
instance
TInstanceThe state machine instance
event
EventThe event to raise
context1
T1An additional context added to the event context
context2
T2An additional context added to the event context
context3
T3An additional context added to the event context
context4
T4An additional context added to the event context
context5
T5An additional context added to the event context
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TInstance
The instance type
T1
T2
T3
T4
T5
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
machine
TThe state machine
instance
TInstanceThe state machine instance
eventSelector
Func<T, Event>Selector to the event on the state machine
context1
T1An additional context added to the event context
context2
T2An additional context added to the event context
context3
T3An additional context added to the event context
context4
T4An additional context added to the event context
context5
T5An additional context added to the event context
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TInstance
The instance type
T1
T2
T3
T4
T5
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
machine
TThe state machine
instance
TInstanceThe state machine instance
event
Event<TData>The event to raise
data
TDataThe event data
context1
T1An additional context added to the event context
context2
T2An additional context added to the event context
context3
T3An additional context added to the event context
context4
T4An additional context added to the event context
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TData
The event data type
TInstance
The instance type
T1
T2
T3
T4
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
machine
TThe state machine
instance
TInstanceThe state machine instance
eventSelector
Func<T, Event<TData>>Selector to the event on the state machine
data
TDataThe event data
context1
T1An additional context added to the event context
context2
T2An additional context added to the event context
context3
T3An additional context added to the event context
context4
T4An additional context added to the event context
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TData
The event data type
TInstance
The instance type
T1
T2
T3
T4
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
machine
TThe state machine
instance
TInstanceThe state machine instance
event
EventThe event to raise
context1
T1An additional context added to the event context
context2
T2An additional context added to the event context
context3
T3An additional context added to the event context
context4
T4An additional context added to the event context
context5
T5An additional context added to the event context
context6
T6An additional context added to the event context
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TInstance
The instance type
T1
T2
T3
T4
T5
T6
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
machine
TThe state machine
instance
TInstanceThe state machine instance
eventSelector
Func<T, Event>Selector to the event on the state machine
context1
T1An additional context added to the event context
context2
T2An additional context added to the event context
context3
T3An additional context added to the event context
context4
T4An additional context added to the event context
context5
T5An additional context added to the event context
context6
T6An additional context added to the event context
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TInstance
The instance type
T1
T2
T3
T4
T5
T6
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
machine
TThe state machine
instance
TInstanceThe state machine instance
event
Event<TData>The event to raise
data
TDataThe event data
context1
T1An additional context added to the event context
context2
T2An additional context added to the event context
context3
T3An additional context added to the event context
context4
T4An additional context added to the event context
context5
T5An additional context added to the event context
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TData
The event data type
TInstance
The instance type
T1
T2
T3
T4
T5
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
machine
TThe state machine
instance
TInstanceThe state machine instance
eventSelector
Func<T, Event<TData>>Selector to the event on the state machine
data
TDataThe event data
context1
T1An additional context added to the event context
context2
T2An additional context added to the event context
context3
T3An additional context added to the event context
context4
T4An additional context added to the event context
context5
T5An additional context added to the event context
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TData
The event data type
TInstance
The instance type
T1
T2
T3
T4
T5
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
machine
TThe state machine
instance
TInstanceThe state machine instance
event
EventThe event to raise
context1
T1An additional context added to the event context
context2
T2An additional context added to the event context
context3
T3An additional context added to the event context
context4
T4An additional context added to the event context
context5
T5An additional context added to the event context
context6
T6An additional context added to the event context
context7
T7An additional context added to the event context
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TInstance
The instance type
T1
T2
T3
T4
T5
T6
T7
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
machine
TThe state machine
instance
TInstanceThe state machine instance
eventSelector
Func<T, Event>Selector to the event on the state machine
context1
T1An additional context added to the event context
context2
T2An additional context added to the event context
context3
T3An additional context added to the event context
context4
T4An additional context added to the event context
context5
T5An additional context added to the event context
context6
T6An additional context added to the event context
context7
T7An additional context added to the event context
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TInstance
The instance type
T1
T2
T3
T4
T5
T6
T7
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
machine
TThe state machine
instance
TInstanceThe state machine instance
event
Event<TData>The event to raise
data
TDataThe event data
context1
T1An additional context added to the event context
context2
T2An additional context added to the event context
context3
T3An additional context added to the event context
context4
T4An additional context added to the event context
context5
T5An additional context added to the event context
context6
T6An additional context added to the event context
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TData
The event data type
TInstance
The instance type
T1
T2
T3
T4
T5
T6
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
machine
TThe state machine
instance
TInstanceThe state machine instance
eventSelector
Func<T, Event<TData>>Selector to the event on the state machine
data
TDataThe event data
context1
T1An additional context added to the event context
context2
T2An additional context added to the event context
context3
T3An additional context added to the event context
context4
T4An additional context added to the event context
context5
T5An additional context added to the event context
context6
T6An additional context added to the event context
cancellationToken
CancellationToken
Returns
Type Parameters
T
The state machine type
TData
The event data type
TInstance
The instance type
T1
T2
T3
T4
T5
T6