Automatically executes an action when a triggering event occurs.

Namespace:  Gallio.Framework
Assembly:  Gallio (in Gallio.dll) Version: 3.3.0.0 (3.3.610.0)

Syntax

C#
public void AutoExecute(
	TriggerEvent triggerEvent,
	Action triggerAction
)
Visual Basic (Declaration)
Public Sub AutoExecute ( _
	triggerEvent As TriggerEvent, _
	triggerAction As Action _
)

Parameters

triggerEvent
Type: Gallio.Framework..::.TriggerEvent
The triggering event.
triggerAction
Type: Gallio.Common..::.Action
The action to execute when triggered.

Exceptions

ExceptionCondition
System..::.ArgumentNullExceptionThrown if triggerAction is null.

See Also