/// <summary>
        /// Ends the long running process.
        /// </summary>
        /// <param name="result">The result.</param>
        public void EndLongRunningProcess(IAsyncResult result)
        {
            ProcessTask processTask = (ProcessTask)result.AsyncState;
            string      id          = processTask.EndInvoke(result);

            longRunningClass.Remove(id);
        }
예제 #2
0
 private void EndAsyncProcess(IAsyncResult result)
 {
     try
     {
         ProcessTask processTask = (ProcessTask)result.AsyncState;
         Guid        id          = processTask.EndInvoke(result);
         Remove(id);
     }
     catch (Exception)
     {
     }
 }