Exemplo n.º 1
0
        void OnStateComplete(object sender, EventArgs e)
        {
            WorkerState state = sender as WorkerState;

            if (null != state)
            {
                state.StateComplete -= OnStateComplete;
            }

            state = StateFactory(state);

            if (null != state)
            {
                ExecuteState(state);
            }
        }
Exemplo n.º 2
0
 abstract public WorkerState StateFactory(WorkerState args = null);