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); }
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); }
public Router(TModel model, IRouterDispatcher routerDispatcher) : this(model, routerDispatcher, null) { }
public Router(IRouterDispatcher routerDispatcher, ITerminalErrorHandler errorHandler) { Guard.Requires <ArgumentNullException>(routerDispatcher != null, "routerDispatcher can not be null"); _underlying = new Router(routerDispatcher, errorHandler); }
public Router(IRouterDispatcher routerDispatcher) : this(routerDispatcher, null) { }