Пример #1
0
 protected virtual void AfterRegister(ProcesserBase processer)
 {
 }
Пример #2
0
 /// <summary>
 /// 注册新的处理器
 /// </summary>
 /// <typeparam name="T">待处理对象的类型</typeparam>
 /// <param name="processerName">处理器名称</param>
 /// <param name="processer">处理器实例</param>
 public virtual void Register(string processerName, ProcesserBase processer)
 {
     processer.Name            = processerName ?? processerName;
     procTable[processer.Name] = processer;
     AfterRegister(processer);
 }