/// <summary>
 /// 为该流程管理器实例注册事件处理委托
 /// </summary>
 /// <typeparam name="Tservice"></typeparam>
 /// <typeparam name="TEvent"></typeparam>
 /// <param name="eventhandle"></param>
 /// <returns></returns>
 public IProcessManager ResgiterPipline <Tservice, TEvent>(Func <TEvent, Task> eventhandle) where Tservice : class where TEvent : EventProcessBase
 {
     if (currentPipline != null)
     {
         currentPipline.SetProcess(ProcessConcifgureBuilder.Build <Tservice, TEvent>(lifetimeScope, subscribeFactory, eventBus, eventhandle));
     }
     return(this);
 }