Table of Contents

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>, PipeContext

Type 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

event Event

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

event Event<T>

The event for the new context

data T

The data for the event

Returns

BehaviorContext<TInstance, T>

Type Parameters

T

The data type