diff --git a/src/AzureMapsControl.Components/Extensions.cs b/src/AzureMapsControl.Components/Extensions.cs index 65e96d5..635691e 100644 --- a/src/AzureMapsControl.Components/Extensions.cs +++ b/src/AzureMapsControl.Components/Extensions.cs @@ -26,9 +26,9 @@ public static class Extensions public static IServiceCollection AddAzureMapsControl(this IServiceCollection services, Action configure) { services - .AddSingleton() - .AddSingleton(sp => sp.GetRequiredService()) - .AddSingleton(sp => sp.GetRequiredService()) + .AddScoped() + .AddScoped(sp => sp.GetRequiredService()) + .AddScoped(sp => sp.GetRequiredService()) .AddScoped() .AddScoped() .AddScoped()