We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d8839d commit 84e6567Copy full SHA for 84e6567
1 file changed
src/AzureMapsControl.Components/Extensions.cs
@@ -26,9 +26,9 @@ public static class Extensions
26
public static IServiceCollection AddAzureMapsControl(this IServiceCollection services, Action<AzureMapsConfiguration> configure)
27
{
28
services
29
- .AddSingleton<MapService>()
30
- .AddSingleton<IMapAdderService>(sp => sp.GetRequiredService<MapService>())
31
- .AddSingleton<IMapService>(sp => sp.GetRequiredService<MapService>())
+ .AddScoped<MapService>()
+ .AddScoped<IMapAdderService>(sp => sp.GetRequiredService<MapService>())
+ .AddScoped<IMapService>(sp => sp.GetRequiredService<MapService>())
32
.AddScoped<IAnimationService, AnimationService>()
33
.AddScoped<IMapJsRuntime, MapJsRuntime>()
34
.AddScoped<IGeolocationService, GeolocationService>()
0 commit comments