コード例 #1
0
 private void HandleInRequest <THandler, TInput>(ISlackServiceProvider services, Func <ISlackHandlerFactory, SlackRequestContext, THandler> createHandler, Action <THandler, TInput> handle, TInput[] inputs)
 {
     DuringRequest(services, ctx =>
     {
         var handler = createHandler(services.GetHandlerFactory(), ctx);
         foreach (var input in inputs)
         {
             handle(handler, input);
         }
     });
 }
コード例 #2
0
 public ISlackHandlerFactory GetHandlerFactory() => _baseProvider.GetHandlerFactory();