/// <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); }
private void EndAsyncProcess(IAsyncResult result) { try { ProcessTask processTask = (ProcessTask)result.AsyncState; Guid id = processTask.EndInvoke(result); Remove(id); } catch (Exception) { } }