Exemple #1
0
 /// <summary>
 /// 始终需要监听指定的控制器类型。
 /// </summary>
 /// <param name="controllerTypes"></param>
 public void On(params Type[] controllerTypes)
 {
     foreach (var item in controllerTypes)
     {
         DomainControllerFactory.CreateDependency(ControllerType, item);
     }
 }
Exemple #2
0
 /// <summary>
 /// 始终需要监听指定的控制器类型。
 /// </summary>
 /// <typeparam name="TListendController"></typeparam>
 public void On <TListendController>()
     where TListendController : DomainController
 {
     DomainControllerFactory.CreateDependency(ControllerType, typeof(TListendController));
 }