SynchronizedOperationBaseExecuteActionAsync Method

Executes the action on a separate thread.

Definition

Namespace: Gemstone.Threading.SynchronizedOperations
Assembly: Gemstone.Threading (in Gemstone.Threading.dll) Version: 1.0.110 -- Release Build+13c244059615c58a533059438f38d7e59ef0c2ea
protected abstract void ExecuteActionAsync()

Remarks

Implementers should call ExecuteAction on a separate thread and check the return value. If it returns true, that means it needs to run again. The following is a sample implementation using a regular dedicated thread:
C#
protected override void ExecuteActionAsync()
{
    Thread actionThread = new Thread(() =>
    {
        while (ExecuteAction())
        {
        }
    });

    actionThread.Start();
}

See Also