Skip to content

Commit 3a4b8c6

Browse files
committed
Remove two Razor example files
1 parent d5fb626 commit 3a4b8c6

11 files changed

+56
-42
lines changed

aspnetcore/blazor/security/includes/imports-file-hosted.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

aspnetcore/blazor/security/includes/imports-file-standalone.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

aspnetcore/blazor/security/includes/imports-hosted.razor

Lines changed: 0 additions & 11 deletions
This file was deleted.

aspnetcore/blazor/security/includes/imports-standalone.razor

Lines changed: 0 additions & 11 deletions
This file was deleted.

aspnetcore/blazor/security/webassembly/hosted-with-azure-active-directory-b2c.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Learn how to secure a hosted ASP.NET Core Blazor WebAssembly app wi
55
monikerRange: '>= aspnetcore-3.1 < aspnetcore-8.0'
66
ms.author: riande
77
ms.custom: mvc
8-
ms.date: 11/12/2024
8+
ms.date: 04/07/2025
99
uid: blazor/security/webassembly/hosted-with-azure-active-directory-b2c
1010
---
1111
# 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
378378

379379
*This section pertains to the solution's **:::no-loc text="Client":::** app.*
380380

381-
[!INCLUDE[](~/blazor/security/includes/imports-file-hosted.md)]
381+
The <xref:Microsoft.AspNetCore.Components.Authorization?displayProperty=fullName> namespace is made available throughout the app via the `_Imports.razor` file:
382+
383+
```razor
384+
...
385+
@using Microsoft.AspNetCore.Components.Authorization
386+
...
387+
```
382388

383389
### Index page
384390

aspnetcore/blazor/security/webassembly/hosted-with-identity-server.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Learn how to secure a hosted ASP.NET Core Blazor WebAssembly app wi
55
monikerRange: '>= aspnetcore-3.1 < aspnetcore-8.0'
66
ms.author: riande
77
ms.custom: mvc, linux-related-content
8-
ms.date: 11/12/2024
8+
ms.date: 04/07/2025
99
uid: blazor/security/webassembly/hosted-with-identity-server
1010
---
1111
# 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
292292

293293
*This section pertains to the solution's **:::no-loc text="Client":::** app.*
294294

295-
[!INCLUDE[](~/blazor/security/includes/imports-file-hosted.md)]
295+
The <xref:Microsoft.AspNetCore.Components.Authorization?displayProperty=fullName> namespace is made available throughout the app via the `_Imports.razor` file:
296+
297+
```razor
298+
...
299+
@using Microsoft.AspNetCore.Components.Authorization
300+
...
301+
```
296302

297303
### `Index` page
298304

aspnetcore/blazor/security/webassembly/hosted-with-microsoft-entra-id.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Learn how to secure a hosted ASP.NET Core Blazor WebAssembly app wi
55
monikerRange: '>= aspnetcore-3.1 < aspnetcore-8.0'
66
ms.author: riande
77
ms.custom: "devx-track-csharp, mvc"
8-
ms.date: 11/12/2024
8+
ms.date: 04/07/2025
99
uid: blazor/security/webassembly/hosted-with-microsoft-entra-id
1010
---
1111
# 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
384384

385385
*This section pertains to the solution's **:::no-loc text="Client":::** app.*
386386

387-
[!INCLUDE[](~/blazor/security/includes/imports-file-hosted.md)]
387+
The <xref:Microsoft.AspNetCore.Components.Authorization?displayProperty=fullName> namespace is made available throughout the app via the `_Imports.razor` file:
388+
389+
```razor
390+
...
391+
@using Microsoft.AspNetCore.Components.Authorization
392+
...
393+
```
388394

389395
### Index page
390396

aspnetcore/blazor/security/webassembly/standalone-with-authentication-library.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Learn how to secure an ASP.NET Core Blazor WebAssembly standalone a
55
monikerRange: '>= aspnetcore-3.1'
66
ms.author: riande
77
ms.custom: mvc
8-
ms.date: 11/12/2024
8+
ms.date: 04/07/2025
99
uid: blazor/security/webassembly/standalone-with-authentication-library
1010
---
1111
# 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
188188

189189
### Imports file
190190

191-
[!INCLUDE[](~/blazor/security/includes/imports-file-standalone.md)]
191+
The <xref:Microsoft.AspNetCore.Components.Authorization?displayProperty=fullName> namespace is made available throughout the app via the `_Imports.razor` file:
192+
193+
```razor
194+
...
195+
@using Microsoft.AspNetCore.Components.Authorization
196+
...
197+
```
192198

193199
### Index page
194200

aspnetcore/blazor/security/webassembly/standalone-with-azure-active-directory-b2c.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Learn how to secure an ASP.NET Core Blazor WebAssembly standalone a
55
monikerRange: '>= aspnetcore-3.1'
66
ms.author: riande
77
ms.custom: mvc
8-
ms.date: 11/12/2024
8+
ms.date: 04/07/2025
99
uid: blazor/security/webassembly/standalone-with-azure-active-directory-b2c
1010
---
1111
# 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
190190

191191
### Imports file
192192

193-
[!INCLUDE[](~/blazor/security/includes/imports-file-standalone.md)]
193+
The <xref:Microsoft.AspNetCore.Components.Authorization?displayProperty=fullName> namespace is made available throughout the app via the `_Imports.razor` file:
194+
195+
```razor
196+
...
197+
@using Microsoft.AspNetCore.Components.Authorization
198+
...
199+
```
194200

195201
### Index page
196202

aspnetcore/blazor/security/webassembly/standalone-with-microsoft-accounts.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Learn how to secure an ASP.NET Core Blazor WebAssembly standalone a
55
monikerRange: '>= aspnetcore-3.1'
66
ms.author: riande
77
ms.custom: mvc
8-
ms.date: 11/12/2024
8+
ms.date: 04/07/2025
99
uid: blazor/security/webassembly/standalone-with-microsoft-accounts
1010
---
1111
# 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
171171

172172
### Imports file
173173

174-
[!INCLUDE[](~/blazor/security/includes/imports-file-standalone.md)]
174+
The <xref:Microsoft.AspNetCore.Components.Authorization?displayProperty=fullName> namespace is made available throughout the app via the `_Imports.razor` file:
175+
176+
```razor
177+
...
178+
@using Microsoft.AspNetCore.Components.Authorization
179+
...
180+
```
175181

176182
### Index page
177183

0 commit comments

Comments
 (0)