Ejemplo n.º 1
0
        public AbstractOperation(int delayMilliSeconds)
        {
            state = DelayedOperationState.Queued;

            delayMillis = delayMilliSeconds;
            ResetRunDateTime();
        }
Ejemplo n.º 2
0
        public AbstractOperation(int delayMilliSeconds)
        {
            state = DelayedOperationState.Queued;

            delayMillis = delayMilliSeconds;
            ResetRunDateTime();
        }
Ejemplo n.º 3
0
        public void Run()
        {
            state = DelayedOperationState.Running;

            do
            {
                isRestart = false;
                Start();
            } while (isRestart);

            state = DelayedOperationState.Completed;
        }
Ejemplo n.º 4
0
 public void Cancel()
 {
     state = DelayedOperationState.Canceled;
 }
Ejemplo n.º 5
0
 public void Cancel()
 {
     state = DelayedOperationState.Canceled;
 }
Ejemplo n.º 6
0
        public void Run()
        {
            state = DelayedOperationState.Running;

            do
            {
                isRestart = false;
                Start();
            }
            while (isRestart);

            state = DelayedOperationState.Completed;
        }