Interface BehaviorContext<TInstance>
- Namespace
- Automatonymous
- Assembly
- Automatonymous.dll
A behavior context is an event context delivered to a behavior, including the state instance
public interface BehaviorContext<out TInstance> : EventContext<TInstance>, InstanceContext<TInstance>, PipeContextType Parameters
- TInstance
- The state instance type 
- Inherited Members
Methods
GetProxy(Event)
Return a proxy of the current behavior context with the specified event
BehaviorContext<out TInstance> GetProxy(Event @event)Parameters
- eventEvent
- The event for the new context 
Returns
- BehaviorContext<TInstance>
GetProxy<T>(Event<T>, T)
Return a proxy of the current behavior context with the specified event and data
BehaviorContext<out TInstance, T> GetProxy<T>(Event<T> @event, T data)Parameters
- eventEvent<T>
- The event for the new context 
- dataT
- The data for the event 
Returns
- BehaviorContext<TInstance, T>
Type Parameters
- T
- The data type