public async Task <TResult> FilterAsync(TQuery operation, CancellationToken cancellationToken, OperationHandlerDelegate <TResult> next) { await _writer.WriteLineAsync($"Query logging: Call query of type {operation.GetType().Name}"); return(await next()); }
internal OperationRequest(object userState, OperationHandlerDelegate operationHandler) { UserState = userState; OperationHandler = operationHandler; AsyncOperation = AsyncOperationManager.CreateOperation(this); }
public async Task <TResult> FilterAsync(TCommand command, CancellationToken cancellationToken, OperationHandlerDelegate <TResult> next) { await _validationProvider.ValidateAndThrowAsync(command, cancellationToken); return(await next()); }