Exemplo n.º 1
0
        public async Task InvokeAsync(GraphFieldExecutionContext context, GraphMiddlewareInvocationDelegate <GraphFieldExecutionContext> next, CancellationToken cancelToken)
        {
            _testService.BeforeNext(nameof(TestMiddleware2));
            await next(context, cancelToken);

            _testService.AfterNext(nameof(TestMiddleware2));
        }
 public Task InvokeAsync(GraphFieldExecutionContext context, GraphMiddlewareInvocationDelegate <GraphFieldExecutionContext> next, CancellationToken cancelToken)
 {
     _testService.BeforeNext(this.Id);
     return(next(context, cancelToken));
 }