Ejemplo n.º 1
0
        public void Execute(
            PlasticThread.Operation threadOperationDelegate,
            PlasticThread.Operation afterOperationDelegate,
            PlasticThread.Operation timerTickDelegate)
        {
            mThreadOperation        = new PlasticThread(threadOperationDelegate);
            mAfterOperationDelegate = afterOperationDelegate;
            mTimerTickDelegate      = timerTickDelegate;

            mPlasticTimer.Start();

            mThreadOperation.Execute();
        }
Ejemplo n.º 2
0
        public void Execute(
            PlasticThread.Operation threadOperationDelegate,
            PlasticThread.Operation afterOperationDelegate,
            PlasticThread.Operation timerTickDelegate)
        {
            try
            {
                threadOperationDelegate();
            }
            catch (Exception ex)
            {
                mException = ex;
            }

            if (timerTickDelegate != null)
            {
                timerTickDelegate();
            }

            afterOperationDelegate();
        }
Ejemplo n.º 3
0
 public void Execute(
     PlasticThread.Operation threadOperationDelegate,
     PlasticThread.Operation afterOperationDelegate)
 {
     Execute(threadOperationDelegate, afterOperationDelegate, null);
 }
Ejemplo n.º 4
0
 void IThreadWaiter.Execute(
     PlasticThread.Operation threadOperationDelegate,
     PlasticThread.Operation afterOperationDelegate)
 {
     ((IThreadWaiter)(this)).Execute(threadOperationDelegate, afterOperationDelegate, null);
 }