Skip to content

Commit

Permalink
Register MapService as scoped (#99)
Browse files Browse the repository at this point in the history
Co-authored-by: Arnaud Leclerc <[email protected]>
  • Loading branch information
arnaudleclerc and Arnaud Leclerc authored Jun 14, 2024
1 parent 0d8839d commit 84e6567
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/AzureMapsControl.Components/Extensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ public static class Extensions
public static IServiceCollection AddAzureMapsControl(this IServiceCollection services, Action<AzureMapsConfiguration> configure)
{
services
.AddSingleton<MapService>()
.AddSingleton<IMapAdderService>(sp => sp.GetRequiredService<MapService>())
.AddSingleton<IMapService>(sp => sp.GetRequiredService<MapService>())
.AddScoped<MapService>()
.AddScoped<IMapAdderService>(sp => sp.GetRequiredService<MapService>())
.AddScoped<IMapService>(sp => sp.GetRequiredService<MapService>())
.AddScoped<IAnimationService, AnimationService>()
.AddScoped<IMapJsRuntime, MapJsRuntime>()
.AddScoped<IGeolocationService, GeolocationService>()
Expand Down

0 comments on commit 84e6567

Please sign in to comment.