Skip to content

Commit

Permalink
Updated name of service collection addition & removed un-needed servi…
Browse files Browse the repository at this point in the history
…ces.
  • Loading branch information
mumby0168 committed Oct 31, 2021
1 parent bab3daa commit efd7eab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion samples/BlazorWebAssembly/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public static async Task Main(string[] args)
{ BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });

builder.Services.AddAuthorizationCore();
builder.Services.AddBlazoredAzureStaticWebApp();
builder.Services.AddBlazoredAzureStaticWebAppsAuthentication();

await builder.Build().RunAsync();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@ namespace Blazored.AzureStaticWebAppAuthentication.Extensions
{
public static class ServiceCollectionExtensions
{
public static IServiceCollection AddBlazoredAzureStaticWebApp(this IServiceCollection services) =>
public static IServiceCollection
AddBlazoredAzureStaticWebAppsAuthentication(this IServiceCollection services) =>
services
.AddScoped<IAzureStaticWebAppNavigationService, AzureStaticWebAppNavigationService>()
.AddScoped<AuthenticationStateProvider, AzureStaticWebAppAuthenticationStateProvider>()
.AddScoped<IAzureStaticWebAppUserProvider, AzureStaticWebAppUserProvider>()
.AddScoped<IAzureStaticWebAppLoginProvider, AzureStaticWebAppNavigationService>()
.AddScoped<IAzureStaticWebAppNavigator, AzureStaticWebAppNavigationService>();
.AddScoped<IAzureStaticWebAppUserProvider, AzureStaticWebAppUserProvider>();
}
}

0 comments on commit efd7eab

Please sign in to comment.