Example #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));
 }
Example #2
0
 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(store_catalog.get_the_sub_departments_in(request.map<DepartmentModel>()));
 }
Example #4
0
 public void process(IContainRequestDetails request)
 {
 }
Example #5
0
 public bool can_process(IContainRequestDetails request)
 {
     return false;
 }
 public void process(IContainRequestDetails request)
 {
     response_engine.display(reporting_gateway.get_the_main_departments_in_the_store());
 }
 public void run(IContainRequestDetails request)
 {
     feature.run(request);
 }
Example #8
0
 public ICanProcessOneUniqueRequest get_the_command_that_can_handle(IContainRequestDetails request)
 {
     return all_commands.FirstOrDefault(x => x.can_process(request)) ?? missing_command_factory();
 }
 public IEnumerable<DepartmentModel> run_using(IContainRequestDetails request)
 {
     throw new NotImplementedException();
 }
 public bool can_process(IContainRequestDetails request)
 {
     return request_specification(request);
 }
Example #11
0
 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);
 }
Example #13
0
 public void process(IContainRequestDetails request)
 {
     application_command.process(request);
 }
Example #14
0
 public bool can_process(IContainRequestDetails request)
 {
     return criteria(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();
        }