Exemple #1
0
        void LockLast_End(object state, bool timedout)
        {
            RunDTP_SO stateObj = (RunDTP_SO)state;

            try
            {
                stateObj.UpdateContext();
                //----------------------------------------
                //CC is locked again
                stateObj.CCLocked = true;

                //read all preliminary results, till completion
                _cc.BeginReadResponse(stateObj.Timeout,
                                      new AsyncCallback(this.ReadLastResponse_End),
                                      stateObj);
            }
            catch (Exception e)
            {
                HandleCatch(e, stateObj);
            }
            catch
            {
                HandleCatch(null, stateObj);
            }
        }