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(IRouterDispatcher routerDispatcher, ITerminalErrorHandler errorHandler) { Guard.Requires <ArgumentNullException>(routerDispatcher != null, "routerDispatcher can not be null"); _underlying = new Router(routerDispatcher, errorHandler); }
public Router(ITerminalErrorHandler errorHandler) : this(new CurrentThreadDispatcher(), errorHandler) { }
public State(ITerminalErrorHandler terminalErrorHandler) { _terminalErrorHandler = terminalErrorHandler; CurrentStatus = Status.Idle; }