コード例 #1
0
        /// <summary>
        /// 管道事件
        /// </summary>
        /// <param name="context"></param>
        /// <param name="e"></param>
        /// <returns></returns>
        public virtual async Task ProcessAsync(BasePipeLineDataContext <TData> context, CancelEventArgs e)
        {
            if (!e.Cancel)
            {
                await OnProcessAsync(context, e);
            }

            //await Task.CompletedTask;
        }
コード例 #2
0
 /// <summary>
 /// 管道事件
 /// </summary>
 /// <param name="context"></param>
 /// <param name="e"></param>
 /// <returns></returns>
 protected abstract Task OnProcessAsync(BasePipeLineDataContext <TData> context, CancelEventArgs e);