Exemple #1
0
 public void process(IContainRequestDetails request)
 {
     _stopWatch.Start();
     _innerCommand.process(request);
     _stopWatch.Stop();
     var milliseconds = _stopWatch.Elapsed.TotalMilliseconds;
     _logger.informational(string.Format("{0} ms", milliseconds));
 }
Exemple #2
0
        public void process(IContainRequestDetails request)
        {
            _stopWatch.Start();
            _innerCommand.process(request);
            _stopWatch.Stop();
            var milliseconds = _stopWatch.Elapsed.TotalMilliseconds;

            _logger.informational(string.Format("{0} ms", milliseconds));
        }
Exemple #3
0
 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());
 }
Exemple #5
0
 public void process(IContainRequestDetails request)
 {
 }
 public IEnumerable <Department> fetch_using(IContainRequestDetails request)
 {
     return(new StubCatalog().get_the_main_departments());
 }
Exemple #7
0
        public IProcessOneRequest get_the_command_that_can_process(IContainRequestDetails request)
        {
            var match = processors.FirstOrDefault(c => c.can_process(request));

            return(match ?? missing_command_factory());
        }
Exemple #8
0
 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);
 }
Exemple #11
0
 public void process(IContainRequestDetails request)
 {
     application_command.process(request);
 }
Exemple #12
0
 public bool can_process(IContainRequestDetails request)
 {
     return criteria(request);
 }
Exemple #13
0
 public bool can_process(IContainRequestDetails request)
 {
     return(false);
 }
Exemple #14
0
 public void process(IContainRequestDetails request)
 {
 }
Exemple #15
0
 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 void process(IContainRequestDetails request)
 {
     response_engine.display(reporting_gateway.get_the_main_departments_in_the_store());
 }
Exemple #20
0
 public void process(IContainRequestDetails request)
 {
     command_registry.get_the_command_that_can_process(request).run(request);
 }
Exemple #21
0
 public ICanProcessOneUniqueRequest get_the_command_that_can_handle(IContainRequestDetails request)
 {
     throw new NotImplementedException();
 }
 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);
 }
Exemple #25
0
 public bool can_process(IContainRequestDetails request)
 {
     return false;
 }
Exemple #26
0
 public ICanProcessOneUniqueRequest get_the_command_that_can_handle(IContainRequestDetails request)
 {
     return all_commands.FirstOrDefault(x => x.can_process(request)) ?? missing_command_factory();
 }
Exemple #27
0
 public IEnumerable <DepartmentModel> run_using(IContainRequestDetails request)
 {
     throw new NotImplementedException();
 }
Exemple #28
0
 public void run(IContainRequestDetails request)
 {
     feature.run(request);
 }
 public void process(IContainRequestDetails request)
 {
     response_engine.display(store_catalog.get_the_sub_departments_in(request.map<DepartmentModel>()));
 }
Exemple #30
0
 public bool can_process(IContainRequestDetails request)
 {
     return(request_specification(request));
 }
Exemple #31
0
 public void process(IContainRequestDetails the_request)
 {
     command_registry.get_the_command_that_can_handle(the_request).process(the_request);
 }
Exemple #32
0
 public void process(IContainRequestDetails request)
 {
     application_command.process(request);
 }
Exemple #33
0
 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();
        }