C# Class ExoModel.ModelEventScope

Represents and tracks the scope of an event within the model.
显示文件 Open project: vc3/ExoModel Class Usage Examples

Public Methods

Method Description
Flush ( ) : void

Raises the Exited event for the current scope and all parent scopes.

OnExit ( System.Action action ) : void

Causes the specified action to be performed when the outermost model event scope has exited, or performs the action immediately if there is not a current scope.

Perform ( System.Action action ) : void

Performs the specified action inside a ModelEventScope.

Private Methods

Method Description
Exit ( ) : void

Invokes the Exited event if this is the outermost ModelEventScope.

ModelEventScope ( ) : System

Creates a new ModelEventScope that represents a generic event within the object model.

ModelEventScope ( ModelEvent @event ) : System

Creates a new ModelEventScope that represents a specific event within the object model.

Perform ( ModelEvent @event, System.Action action ) : void

Performs the specified action inside a ModelEventScope.

PerformAction ( System.Action action ) : void

Performs the specified action inside the current ModelEventScope.

RaiseExited ( ) : void

Method Details

Flush() public method

Raises the Exited event for the current scope and all parent scopes.
public Flush ( ) : void
return void

OnExit() public static method

Causes the specified action to be performed when the outermost model event scope has exited, or performs the action immediately if there is not a current scope.
public static OnExit ( System.Action action ) : void
action System.Action
return void

Perform() public static method

Performs the specified action inside a ModelEventScope.
public static Perform ( System.Action action ) : void
action System.Action
return void