C# Класс PsmFramework.Engines.Messaging.WeakAction

Stores an Action without causing a hard reference to be created to the Action's owner. The owner can be garbage collected at any time.
Показать файл Открыть проект

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

Метод Описание
Execute ( ) : void

Executes the action. This only happens if the action's owner is still alive.

MarkForDeletion ( ) : void

Sets the reference that this instance stores to null.

WeakAction ( object target, System.Action action ) : System

Initializes a new instance of the WeakAction class.

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

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

Executes the action. This only happens if the action's owner is still alive.
public Execute ( ) : void
Результат void

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

Sets the reference that this instance stores to null.
public MarkForDeletion ( ) : void
Результат void

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

Initializes a new instance of the WeakAction class.
public WeakAction ( object target, System.Action action ) : System
target object The action's owner.
action System.Action The action that will be associated to this instance.
Результат System