From ec36a24e8a61f743759e21dc2e67b3c32ddf5581 Mon Sep 17 00:00:00 2001 From: afuersch Date: Thu, 23 Nov 2023 03:01:08 +0100 Subject: [PATCH] Fix method name of async ResultsListAuthorizeAsync method in documentation. (#666) 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)