We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0c95f1 commit 9963c20Copy full SHA for 9963c20
src/Blazor.Extensions.Storage/StorageExtensions.cs
@@ -1,13 +1,13 @@
1
-using Microsoft.Extensions.DependencyInjection;
2
-
3
-namespace Blazor.Extensions.Storage
4
-{
5
- public static class StorageExtensions
6
- {
7
- public static IServiceCollection AddStorage(this IServiceCollection services)
8
9
- return services.AddSingleton<SessionStorage>()
10
- .AddSingleton<LocalStorage>();
11
- }
12
13
-}
+using Microsoft.Extensions.DependencyInjection;
+
+namespace Blazor.Extensions.Storage
+{
+ public static class StorageExtensions
+ {
+ public static IServiceCollection AddStorage(this IServiceCollection services)
+ return services.AddScoped<SessionStorage>()
+ .AddScoped<LocalStorage>();
+ }
+}
0 commit comments