public void process(IContainRequestDetails request) { _stopWatch.Start(); _innerCommand.process(request); _stopWatch.Stop(); var milliseconds = _stopWatch.Elapsed.TotalMilliseconds; _logger.informational(string.Format("{0} ms", milliseconds)); }
public ICanProcessOneUniqueRequest get_the_command_that_can_handle(IContainRequestDetails request) { return all_commands.FirstOrDefault(x => x.can_process(request)) ?? missing_command_factory(); }
public void process(IContainRequestDetails request) { response_engine.display(reporting_gateway.get_the_main_departments_in_the_store()); }
public void process(IContainRequestDetails request) { }
public IEnumerable <Department> fetch_using(IContainRequestDetails request) { return(new StubCatalog().get_the_main_departments()); }
public IProcessOneRequest get_the_command_that_can_process(IContainRequestDetails request) { var match = processors.FirstOrDefault(c => c.can_process(request)); return(match ?? missing_command_factory()); }
public bool can_process(IContainRequestDetails request) { return(criteria(request)); }
public ICanProcessOneUniqueRequest get_the_command_that_can_handle(IContainRequestDetails request) { throw new NotImplementedException(); }
public void process(IContainRequestDetails request) { command_registry.get_the_command_that_can_process(request).run(request); }
public void process(IContainRequestDetails request) { application_command.process(request); }
public bool can_process(IContainRequestDetails request) { return criteria(request); }
public bool can_process(IContainRequestDetails request) { return(false); }
public void process(IContainRequestDetails request) { response_engine.display(store_catalog.get_the_sub_departments_in(request.map <DepartmentModel>())); }
public IEnumerable<DepartmentModel> run_using(IContainRequestDetails request) { throw new NotImplementedException(); }
public void run(IContainRequestDetails request) { display_engine.display(query(request)); }
public void process(IContainRequestDetails the_request) { command_registry.get_the_command_that_can_handle(the_request).run_using(the_request); }
public bool can_process(IContainRequestDetails request) { return request_specification(request); }
public static bool IsMainDepartmentsRoute(IContainRequestDetails request) { return(request.is_good_for("main-deparments")); }
public void run(IContainRequestDetails request) { feature.run(request); }
public bool can_process(IContainRequestDetails request) { return false; }
public IEnumerable <DepartmentModel> run_using(IContainRequestDetails request) { throw new NotImplementedException(); }
public void process(IContainRequestDetails request) { response_engine.display(store_catalog.get_the_sub_departments_in(request.map<DepartmentModel>())); }
public bool can_process(IContainRequestDetails request) { return(request_specification(request)); }
public void process(IContainRequestDetails the_request) { command_registry.get_the_command_that_can_handle(the_request).process(the_request); }
public void process(IContainRequestDetails request) { response_engine.display(query(request)); }
public IProcessOneRequest get_the_command_that_can_process(IContainRequestDetails request) { var match = processors.FirstOrDefault(c => c.can_process(request)); return match ?? missing_command_factory(); }