/// <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; }
/// <summary> /// 管道事件 /// </summary> /// <param name="context"></param> /// <param name="e"></param> /// <returns></returns> protected abstract Task OnProcessAsync(BasePipeLineDataContext <TData> context, CancelEventArgs e);