示例#1
0
 public IHandleOneWebRequest get_handler_for_request(IProvideDetailsToHandlers request)
 {
   return all_the_handlers.FirstOrDefault(x => x.can_process(request)) ??
          create_the_missing_handler(request);
 }
示例#2
0
 public void process(IProvideDetailsToHandlers web_request)
 {
   feature.process(web_request);
 }
示例#3
0
 public bool can_process(IProvideDetailsToHandlers request)
 {
   return request_criteria(request);
 }
示例#4
0
 public void process(IProvideDetailsToHandlers web_request)
 {
   var handler = handlers.get_handler_for_request(web_request);
   handler.process(web_request);
 }