Update maui-blazor-web-app.md (#32905)

pull/32908/head
waedi 2024-06-20 13:57:44 +02:00 committed by GitHub
parent f1e054280d
commit 3f3c0b088a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 13 additions and 0 deletions

View File

@ -531,11 +531,24 @@ Dependency injection is used to obtain the implementations of these services.
In the MAUI project, the `MauiProgram.cs` file has following `using` statements at the top of the file:
:::moniker range=">= aspnetcore-9.0"
```csharp
using MauiBlazorWeb.Services;
using MauiBlazorWeb.Shared.Interfaces;
```
:::moniker-end
:::moniker range="< aspnetcore-9.0"
```csharp
using MauiBlazorWeb.Maui.Services;
using MauiBlazorWeb.Shared.Interfaces;
```
:::moniker-end
Immediately before the call to `builder.Build()`, `FormFactor` is registered to add device-specific services used by the RCL:
```csharp