Skip to content

Commit 9c20ab1

Browse files
authored
Update service registration (#522)
1 parent 38d684b commit 9c20ab1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

9.0/MauiBlazorWebIdentity/MauiBlazorWeb/MauiBlazorWeb/MauiProgram.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public static MauiApp CreateMauiApp()
2828
// This is the core functionality
2929
builder.Services.AddAuthorizationCore();
3030
// This is our custom provider
31-
builder.Services.AddScoped<MauiAuthenticationStateProvider, MauiAuthenticationStateProvider>();
31+
builder.Services.AddScoped<MauiAuthenticationStateProvider>();
3232
// Use our custom provider when the app needs an AuthenticationStateProvider
3333
builder.Services.AddScoped<AuthenticationStateProvider>(s
3434
=> (MauiAuthenticationStateProvider)s.GetRequiredService<MauiAuthenticationStateProvider>());

0 commit comments

Comments
 (0)