From f3eaf007439ff079463ea06ac3e555455d4f57f9 Mon Sep 17 00:00:00 2001 From: afuersch Date: Mon, 13 Nov 2023 15:35:50 +0100 Subject: [PATCH] Update AspDotNetCore.md Fix method name of async ResultsListAuthorizeAsync method. --- docs/AspDotNetCore.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/AspDotNetCore.md b/docs/AspDotNetCore.md index c8704204..b541cb12 100644 --- a/docs/AspDotNetCore.md +++ b/docs/AspDotNetCore.md @@ -45,7 +45,7 @@ public void ConfigureServices(IServiceCollection services) options.ResultsListAuthorize = request => MyGetUserFunction(request).CanSeeMiniProfiler; // Or, there are async versions available: options.ResultsAuthorizeAsync = async request => (await MyGetUserFunctionAsync(request)).CanSeeMiniProfiler; - options.ResultsAuthorizeListAsync = async request => (await MyGetUserFunctionAsync(request)).CanSeeMiniProfilerLists; + options.ResultsListAuthorizeAsync = async request => (await MyGetUserFunctionAsync(request)).CanSeeMiniProfilerLists; // (Optional) To control which requests are profiled, use the Func option: // (default is everything should be profiled)