Exemplo n.º 1
0
        void RunDTP_End(IAsyncResult ar)
        {
            PutFile_SO stateObj = (PutFile_SO)ar.AsyncState;

            try
            {
                stateObj.UpdateContext();
                _currentDTP.EndExecute(ar);
            }
            catch (Exception e)
            {
                stateObj.Exception = e;
            }
            finally
            {
                _currentDTP.Dispose();
                _currentDTP = null;
                stateObj.SetCompleted();
            }
        }