From efa6c9f7bc0d633ada390b952e862282052c3a00 Mon Sep 17 00:00:00 2001 From: Thomas Claudius Huber Date: Thu, 23 Mar 2023 17:18:15 +0100 Subject: [PATCH 1/2] Change MainWindow.cs to MauiProgram.cs Use the correct filename that contains the static `CreateMauiApp` method. --- aspnetcore/blazor/hybrid/security/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aspnetcore/blazor/hybrid/security/index.md b/aspnetcore/blazor/hybrid/security/index.md index cb0a1ebd6814..e7848e4536c7 100644 --- a/aspnetcore/blazor/hybrid/security/index.md +++ b/aspnetcore/blazor/hybrid/security/index.md @@ -104,7 +104,7 @@ The following steps describe how to: * Resolve the `AuthenticatedUser` service to set the authenticated user's claims principal. See your identity provider's documentation for details. * Return the built host. -In the `MauiProgram.CreateMauiApp` method of `MainWindow.cs`, add namespaces for and : +In the `MauiProgram.CreateMauiApp` method of `MauiProgram.cs`, add namespaces for and : ```csharp using Microsoft.AspNetCore.Components.Authorization; @@ -299,7 +299,7 @@ public class ExternalAuthService :::zone pivot="maui" -In the `MauiProgram.CreateMauiApp` method of `MainWindow.cs`, add a namespace for : +In the `MauiProgram.CreateMauiApp` method of `MauiProgram.cs`, add a namespace for : ```csharp using Microsoft.AspNetCore.Components.Authorization; From 62d4ee4c510c6bc8f6f2244abb80772d05c6275a Mon Sep 17 00:00:00 2001 From: Luke Latham <1622880+guardrex@users.noreply.github.com> Date: Thu, 23 Mar 2023 15:48:12 -0400 Subject: [PATCH 2/2] Updates --- aspnetcore/blazor/hybrid/security/index.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/aspnetcore/blazor/hybrid/security/index.md b/aspnetcore/blazor/hybrid/security/index.md index e7848e4536c7..e21c68b164c8 100644 --- a/aspnetcore/blazor/hybrid/security/index.md +++ b/aspnetcore/blazor/hybrid/security/index.md @@ -447,7 +447,7 @@ In the preceding example: :::zone pivot="maui" -In the `MauiProgram.CreateMauiApp` method of `MainWindow.cs`, add the authorization services and the Blazor abstraction to the service collection: +In the `MauiProgram.CreateMauiApp` method of `MauiProgram.cs`, add the authorization services and the Blazor abstraction to the service collection: ```csharp builder.Services.AddAuthorizationCore(); @@ -636,7 +636,7 @@ The following steps describe how to: * Resolve the `AuthenticatedUser` service to set the authenticated user's claims principal. See your identity provider's documentation for details. * Return the built host. -In the `MauiProgram.CreateMauiApp` method of `MainWindow.cs`, add namespaces for and : +In the `MauiProgram.CreateMauiApp` method of `MauiProgram.cs`, add namespaces for and : ```csharp using Microsoft.AspNetCore.Components.Authorization; @@ -831,7 +831,7 @@ public class ExternalAuthService :::zone pivot="maui" -In the `MauiProgram.CreateMauiApp` method of `MainWindow.cs`, add a namespace for : +In the `MauiProgram.CreateMauiApp` method of `MauiProgram.cs`, add a namespace for : ```csharp using Microsoft.AspNetCore.Components.Authorization; @@ -979,7 +979,7 @@ In the preceding example: :::zone pivot="maui" -In the `MauiProgram.CreateMauiApp` method of `MainWindow.cs`, add the authorization services and the Blazor abstraction to the service collection: +In the `MauiProgram.CreateMauiApp` method of `MauiProgram.cs`, add the authorization services and the Blazor abstraction to the service collection: ```csharp builder.Services.AddAuthorizationCore();