C# Класс ExoModel.ModelEventScope

Represents and tracks the scope of an event within the model.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

Flush() публичный Метод

Raises the Exited event for the current scope and all parent scopes.
public Flush ( ) : void
Результат void

OnExit() публичный статический Метод

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
Результат void

Perform() публичный статический Метод

Performs the specified action inside a ModelEventScope.
public static Perform ( System.Action action ) : void
action System.Action
Результат void