Skip to content

Commit 6d5dd85

Browse files
authored
Fix service registration remark (#35687)
1 parent 18ac67c commit 6d5dd85

File tree

1 file changed

+1
-1
lines changed
  • aspnetcore/security/authorization

1 file changed

+1
-1
lines changed

aspnetcore/security/authorization/iard.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ The `HandleRequirementAsync` method:
3535

3636
:::code language="csharp" source="~/../AspNetCore.Docs.Samples/security/authorization/AuthRequirementsData/Authorization/MinimumAgeAuthorizationHandler.cs":::
3737

38-
The `MinimumAgeAuthorizationHandler` is registered as a scoped <xref:Microsoft.AspNetCore.Authorization.IAuthorizationHandler> service in the app's `Program` file:
38+
The `MinimumAgeAuthorizationHandler` is registered as a singleton <xref:Microsoft.AspNetCore.Authorization.IAuthorizationHandler> service in the app's `Program` file:
3939

4040
```csharp
4141
builder.Services.AddSingleton<IAuthorizationHandler,

0 commit comments

Comments
 (0)