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