From 3a4b8c604be9967e68019c835a6891c34da9c0db Mon Sep 17 00:00:00 2001 From: guardrex <1622880+guardrex@users.noreply.github.com> Date: Mon, 7 Apr 2025 18:34:28 -0400 Subject: [PATCH] Remove two Razor example files --- .../blazor/security/includes/imports-file-hosted.md | 3 --- .../security/includes/imports-file-standalone.md | 3 --- .../blazor/security/includes/imports-hosted.razor | 11 ----------- .../blazor/security/includes/imports-standalone.razor | 11 ----------- .../hosted-with-azure-active-directory-b2c.md | 10 ++++++++-- .../webassembly/hosted-with-identity-server.md | 10 ++++++++-- .../webassembly/hosted-with-microsoft-entra-id.md | 10 ++++++++-- .../standalone-with-authentication-library.md | 10 ++++++++-- .../standalone-with-azure-active-directory-b2c.md | 10 ++++++++-- .../webassembly/standalone-with-microsoft-accounts.md | 10 ++++++++-- .../webassembly/standalone-with-microsoft-entra-id.md | 10 ++++++++-- 11 files changed, 56 insertions(+), 42 deletions(-) delete mode 100644 aspnetcore/blazor/security/includes/imports-file-hosted.md delete mode 100644 aspnetcore/blazor/security/includes/imports-file-standalone.md delete mode 100644 aspnetcore/blazor/security/includes/imports-hosted.razor delete mode 100644 aspnetcore/blazor/security/includes/imports-standalone.razor diff --git a/aspnetcore/blazor/security/includes/imports-file-hosted.md b/aspnetcore/blazor/security/includes/imports-file-hosted.md deleted file mode 100644 index 7d6b0724aa85..000000000000 --- a/aspnetcore/blazor/security/includes/imports-file-hosted.md +++ /dev/null @@ -1,3 +0,0 @@ -The namespace is made available throughout the app via the `_Imports.razor` file: - -[!code-razor[](imports-hosted.razor?highlight=3)] diff --git a/aspnetcore/blazor/security/includes/imports-file-standalone.md b/aspnetcore/blazor/security/includes/imports-file-standalone.md deleted file mode 100644 index 116aaf1f4045..000000000000 --- a/aspnetcore/blazor/security/includes/imports-file-standalone.md +++ /dev/null @@ -1,3 +0,0 @@ -The namespace is made available throughout the app via the `_Imports.razor` file: - -[!code-razor[](imports-standalone.razor?highlight=3)] diff --git a/aspnetcore/blazor/security/includes/imports-hosted.razor b/aspnetcore/blazor/security/includes/imports-hosted.razor deleted file mode 100644 index 65c6746a22dd..000000000000 --- a/aspnetcore/blazor/security/includes/imports-hosted.razor +++ /dev/null @@ -1,11 +0,0 @@ -@using System.Net.Http -@using System.Net.Http.Json -@using Microsoft.AspNetCore.Components.Authorization -@using Microsoft.AspNetCore.Components.Forms -@using Microsoft.AspNetCore.Components.Routing -@using Microsoft.AspNetCore.Components.Web -@using Microsoft.AspNetCore.Components.Web.Virtualization -@using Microsoft.AspNetCore.Components.WebAssembly.Http -@using Microsoft.JSInterop -@using {APPLICATION ASSEMBLY} -@using {APPLICATION ASSEMBLY}.Shared diff --git a/aspnetcore/blazor/security/includes/imports-standalone.razor b/aspnetcore/blazor/security/includes/imports-standalone.razor deleted file mode 100644 index 65c6746a22dd..000000000000 --- a/aspnetcore/blazor/security/includes/imports-standalone.razor +++ /dev/null @@ -1,11 +0,0 @@ -@using System.Net.Http -@using System.Net.Http.Json -@using Microsoft.AspNetCore.Components.Authorization -@using Microsoft.AspNetCore.Components.Forms -@using Microsoft.AspNetCore.Components.Routing -@using Microsoft.AspNetCore.Components.Web -@using Microsoft.AspNetCore.Components.Web.Virtualization -@using Microsoft.AspNetCore.Components.WebAssembly.Http -@using Microsoft.JSInterop -@using {APPLICATION ASSEMBLY} -@using {APPLICATION ASSEMBLY}.Shared diff --git a/aspnetcore/blazor/security/webassembly/hosted-with-azure-active-directory-b2c.md b/aspnetcore/blazor/security/webassembly/hosted-with-azure-active-directory-b2c.md index cdcc2d073d0e..e382d2c86c07 100644 --- a/aspnetcore/blazor/security/webassembly/hosted-with-azure-active-directory-b2c.md +++ b/aspnetcore/blazor/security/webassembly/hosted-with-azure-active-directory-b2c.md @@ -5,7 +5,7 @@ description: Learn how to secure a hosted ASP.NET Core Blazor WebAssembly app wi monikerRange: '>= aspnetcore-3.1 < aspnetcore-8.0' ms.author: riande ms.custom: mvc -ms.date: 11/12/2024 +ms.date: 04/07/2025 uid: blazor/security/webassembly/hosted-with-azure-active-directory-b2c --- # Secure a hosted ASP.NET Core Blazor WebAssembly app with Azure Active Directory B2C @@ -378,7 +378,13 @@ For more information, see the following sections of the *Additional scenarios* a *This section pertains to the solution's **:::no-loc text="Client":::** app.* -[!INCLUDE[](~/blazor/security/includes/imports-file-hosted.md)] +The namespace is made available throughout the app via the `_Imports.razor` file: + +```razor +... +@using Microsoft.AspNetCore.Components.Authorization +... +``` ### Index page diff --git a/aspnetcore/blazor/security/webassembly/hosted-with-identity-server.md b/aspnetcore/blazor/security/webassembly/hosted-with-identity-server.md index 90a10310615e..23beb7de9be6 100644 --- a/aspnetcore/blazor/security/webassembly/hosted-with-identity-server.md +++ b/aspnetcore/blazor/security/webassembly/hosted-with-identity-server.md @@ -5,7 +5,7 @@ description: Learn how to secure a hosted ASP.NET Core Blazor WebAssembly app wi monikerRange: '>= aspnetcore-3.1 < aspnetcore-8.0' ms.author: riande ms.custom: mvc, linux-related-content -ms.date: 11/12/2024 +ms.date: 04/07/2025 uid: blazor/security/webassembly/hosted-with-identity-server --- # Secure a hosted ASP.NET Core Blazor WebAssembly app with Identity Server @@ -292,7 +292,13 @@ Configuration for the app is loaded by convention from `_configuration/{client-i *This section pertains to the solution's **:::no-loc text="Client":::** app.* -[!INCLUDE[](~/blazor/security/includes/imports-file-hosted.md)] +The namespace is made available throughout the app via the `_Imports.razor` file: + +```razor +... +@using Microsoft.AspNetCore.Components.Authorization +... +``` ### `Index` page diff --git a/aspnetcore/blazor/security/webassembly/hosted-with-microsoft-entra-id.md b/aspnetcore/blazor/security/webassembly/hosted-with-microsoft-entra-id.md index 629d83cdbda2..89e876247f1c 100644 --- a/aspnetcore/blazor/security/webassembly/hosted-with-microsoft-entra-id.md +++ b/aspnetcore/blazor/security/webassembly/hosted-with-microsoft-entra-id.md @@ -5,7 +5,7 @@ description: Learn how to secure a hosted ASP.NET Core Blazor WebAssembly app wi monikerRange: '>= aspnetcore-3.1 < aspnetcore-8.0' ms.author: riande ms.custom: "devx-track-csharp, mvc" -ms.date: 11/12/2024 +ms.date: 04/07/2025 uid: blazor/security/webassembly/hosted-with-microsoft-entra-id --- # Secure a hosted ASP.NET Core Blazor WebAssembly app with Microsoft Entra ID @@ -384,7 +384,13 @@ For more information, see the following sections of the *Additional scenarios* a *This section pertains to the solution's **:::no-loc text="Client":::** app.* -[!INCLUDE[](~/blazor/security/includes/imports-file-hosted.md)] +The namespace is made available throughout the app via the `_Imports.razor` file: + +```razor +... +@using Microsoft.AspNetCore.Components.Authorization +... +``` ### Index page diff --git a/aspnetcore/blazor/security/webassembly/standalone-with-authentication-library.md b/aspnetcore/blazor/security/webassembly/standalone-with-authentication-library.md index 5b7f1aba8474..07b5ccd07b7b 100644 --- a/aspnetcore/blazor/security/webassembly/standalone-with-authentication-library.md +++ b/aspnetcore/blazor/security/webassembly/standalone-with-authentication-library.md @@ -5,7 +5,7 @@ description: Learn how to secure an ASP.NET Core Blazor WebAssembly standalone a monikerRange: '>= aspnetcore-3.1' ms.author: riande ms.custom: mvc -ms.date: 11/12/2024 +ms.date: 04/07/2025 uid: blazor/security/webassembly/standalone-with-authentication-library --- # Secure an ASP.NET Core Blazor WebAssembly standalone app with the Authentication library @@ -188,7 +188,13 @@ For more information, see the following sections of the *Additional scenarios* a ### Imports file -[!INCLUDE[](~/blazor/security/includes/imports-file-standalone.md)] +The namespace is made available throughout the app via the `_Imports.razor` file: + +```razor +... +@using Microsoft.AspNetCore.Components.Authorization +... +``` ### Index page diff --git a/aspnetcore/blazor/security/webassembly/standalone-with-azure-active-directory-b2c.md b/aspnetcore/blazor/security/webassembly/standalone-with-azure-active-directory-b2c.md index efeea36bfd26..bad7dce275eb 100644 --- a/aspnetcore/blazor/security/webassembly/standalone-with-azure-active-directory-b2c.md +++ b/aspnetcore/blazor/security/webassembly/standalone-with-azure-active-directory-b2c.md @@ -5,7 +5,7 @@ description: Learn how to secure an ASP.NET Core Blazor WebAssembly standalone a monikerRange: '>= aspnetcore-3.1' ms.author: riande ms.custom: mvc -ms.date: 11/12/2024 +ms.date: 04/07/2025 uid: blazor/security/webassembly/standalone-with-azure-active-directory-b2c --- # Secure an ASP.NET Core Blazor WebAssembly standalone app with Azure Active Directory B2C @@ -190,7 +190,13 @@ For more information, see the following sections of the *Additional scenarios* a ### Imports file -[!INCLUDE[](~/blazor/security/includes/imports-file-standalone.md)] +The namespace is made available throughout the app via the `_Imports.razor` file: + +```razor +... +@using Microsoft.AspNetCore.Components.Authorization +... +``` ### Index page diff --git a/aspnetcore/blazor/security/webassembly/standalone-with-microsoft-accounts.md b/aspnetcore/blazor/security/webassembly/standalone-with-microsoft-accounts.md index 41ed5963cca3..5f413aa2c8b5 100644 --- a/aspnetcore/blazor/security/webassembly/standalone-with-microsoft-accounts.md +++ b/aspnetcore/blazor/security/webassembly/standalone-with-microsoft-accounts.md @@ -5,7 +5,7 @@ description: Learn how to secure an ASP.NET Core Blazor WebAssembly standalone a monikerRange: '>= aspnetcore-3.1' ms.author: riande ms.custom: mvc -ms.date: 11/12/2024 +ms.date: 04/07/2025 uid: blazor/security/webassembly/standalone-with-microsoft-accounts --- # Secure an ASP.NET Core Blazor WebAssembly standalone app with Microsoft Accounts @@ -171,7 +171,13 @@ For more information, see the following sections of the *Additional scenarios* a ### Imports file -[!INCLUDE[](~/blazor/security/includes/imports-file-standalone.md)] +The namespace is made available throughout the app via the `_Imports.razor` file: + +```razor +... +@using Microsoft.AspNetCore.Components.Authorization +... +``` ### Index page diff --git a/aspnetcore/blazor/security/webassembly/standalone-with-microsoft-entra-id.md b/aspnetcore/blazor/security/webassembly/standalone-with-microsoft-entra-id.md index e4236da8360a..6473b8121955 100644 --- a/aspnetcore/blazor/security/webassembly/standalone-with-microsoft-entra-id.md +++ b/aspnetcore/blazor/security/webassembly/standalone-with-microsoft-entra-id.md @@ -5,7 +5,7 @@ description: Learn how to secure an ASP.NET Core Blazor WebAssembly standalone a monikerRange: '>= aspnetcore-3.1' ms.author: riande ms.custom: "devx-track-csharp, mvc" -ms.date: 11/12/2024 +ms.date: 04/07/2025 uid: blazor/security/webassembly/standalone-with-microsoft-entra-id --- # Secure an ASP.NET Core Blazor WebAssembly standalone app with Microsoft Entra ID @@ -172,7 +172,13 @@ For more information, see the following resources: ### Imports file -[!INCLUDE[](~/blazor/security/includes/imports-file-standalone.md)] +The namespace is made available throughout the app via the `_Imports.razor` file: + +```razor +... +@using Microsoft.AspNetCore.Components.Authorization +... +``` ### Index page