File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/AzureMapsControl.Components Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -26,9 +26,9 @@ public static class Extensions
2626 public static IServiceCollection AddAzureMapsControl ( this IServiceCollection services , Action < AzureMapsConfiguration > configure )
2727 {
2828 services
29- . AddSingleton < MapService > ( )
30- . AddSingleton < IMapAdderService > ( sp => sp . GetRequiredService < MapService > ( ) )
31- . AddSingleton < IMapService > ( sp => sp . GetRequiredService < MapService > ( ) )
29+ . AddScoped < MapService > ( )
30+ . AddScoped < IMapAdderService > ( sp => sp . GetRequiredService < MapService > ( ) )
31+ . AddScoped < IMapService > ( sp => sp . GetRequiredService < MapService > ( ) )
3232 . AddScoped < IAnimationService , AnimationService > ( )
3333 . AddScoped < IMapJsRuntime , MapJsRuntime > ( )
3434 . AddScoped < IGeolocationService , GeolocationService > ( )
You can’t perform that action at this time.
0 commit comments