/// <summary> /// 异步操作完成后执行方法 /// </summary> /// <param name="result">异步操作结果</param> public static void End(IAsyncResult result) { ExAsyncResult.End <CompletedAsyncResult>(result); }
/// <summary> /// 异步操作完成后执行方法 /// </summary> /// <param name="result">异步操作结果</param> /// <returns>返回异步操作数据</returns> public static T End(IAsyncResult result) { DataAsyncResult <T> typedResult = ExAsyncResult.End <DataAsyncResult <T> >(result); return(typedResult.Data); }