public LoggingAsyncFunctionDecorator(
     IFunctionHandlerAsync <TCommand, TOutput> decorateeHandler,
     IEventLogger <LoggingAsyncFunctionDecorator <TCommand, TOutput> > logger
     ) : base(decorateeHandler, logger, true)
 {
     this.decorateeHandler = decorateeHandler;
 }
Esempio n. 2
0
 private static Task <TOutput> ExecuteFunctionShimAsync <TFunction, TOutput>(
     IFunctionHandlerAsync <TFunction, TOutput> handler,
     TFunction function
     )
     where TFunction : IFunction <TOutput>
 {
     return(handler.ExecuteAsync(function));
 }