Ejemplo n.º 1
0
 protected void Register <TEvent>(Action <TEvent> handler)
 {
     if (handler == null)
     {
         throw new Exception();
     }
     _router.ConfigureRoute(handler);
 }
Ejemplo n.º 2
0
 protected void Register <TEvent>(Action <TEvent> handler)
 {
     if (handler is null)
     {
         throw new ArgumentNullException(nameof(handler));
     }
     _router.ConfigureRoute(handler);
 }