Example #1
0
 public Router(TModel model, IRouterDispatcher routerDispatcher, ITerminalErrorHandler errorHandler)
 {
     Guard.Requires <ArgumentNullException>(model != null, "model can not be null");
     Guard.Requires <ArgumentNullException>(routerDispatcher != null, "routerDispatcher can not be null");
     _underlying = new Router(routerDispatcher, errorHandler);
     AddModelInternal(model);
 }
Example #2
0
 public Router(IRouterDispatcher routerDispatcher, ITerminalErrorHandler errorHandler)
 {
     Guard.Requires <ArgumentNullException>(routerDispatcher != null, "routerDispatcher can not be null");
     _routerDispatcher         = routerDispatcher;
     _errorHandler             = errorHandler;
     _modelsEventsObservations = new ModelsEventsObservations();
     _state = new State(_errorHandler);
 }
Example #3
0
 public Router(TModel model, IRouterDispatcher routerDispatcher)
     : this(model, routerDispatcher, null)
 {
 }
Example #4
0
 public Router(IRouterDispatcher routerDispatcher, ITerminalErrorHandler errorHandler)
 {
     Guard.Requires <ArgumentNullException>(routerDispatcher != null, "routerDispatcher can not be null");
     _underlying = new Router(routerDispatcher, errorHandler);
 }
Example #5
0
 public Router(IRouterDispatcher routerDispatcher)
     : this(routerDispatcher, null)
 {
 }