예제 #1
0
 /// <summary>
 /// 异步操作完成后执行方法
 /// </summary>
 /// <param name="result">异步操作结果</param>
 public static void End(IAsyncResult result)
 {
     ExAsyncResult.End <CompletedAsyncResult>(result);
 }
예제 #2
0
        /// <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);
        }