Skip to content

Commit

Permalink
Fix method name of async ResultsListAuthorizeAsync method in document…
Browse files Browse the repository at this point in the history
…ation. (#666)

Fix method name of async ResultsListAuthorizeAsync method.
  • Loading branch information
afuersch authored Nov 23, 2023
1 parent 1d93eab commit ec36a24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/AspDotNetCore.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<HttpRequest, bool> option:
// (default is everything should be profiled)
Expand Down

0 comments on commit ec36a24

Please sign in to comment.