C# Class ExoModel.ModelEventScope

Represents and tracks the scope of an event within the model.
Afficher le fichier Open project: vc3/ExoModel Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

OnExit() public static méthode

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
Résultat void

Perform() public static méthode

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