diff --git a/LiteCharms.Features.MidrandBooks/Extensions/Shop.cs b/LiteCharms.Features.MidrandBooks/Extensions/Shop.cs index c5d2666..254f236 100644 --- a/LiteCharms.Features.MidrandBooks/Extensions/Shop.cs +++ b/LiteCharms.Features.MidrandBooks/Extensions/Shop.cs @@ -12,7 +12,7 @@ public static class Shop var sharedImplementations = typeof(IFeatures).Assembly.GetTypes() .Where(t => serviceType.IsAssignableFrom(t) && t.IsClass && !t.IsAbstract); - foreach (var sharedImplementation in sharedImplementations) services.AddTransient(sharedImplementation); + foreach (var sharedImplementation in sharedImplementations) services.AddScoped(sharedImplementation); var coreImplementations = typeof(IMidrandBooks).Assembly.GetTypes() .Where(t => serviceType.IsAssignableFrom(t) && t.IsClass && !t.IsAbstract); diff --git a/LiteCharms.Features/Browser/LocalStorageService.cs b/LiteCharms.Features/Browser/LocalStorageService.cs index f5168ac..9abf93b 100644 --- a/LiteCharms.Features/Browser/LocalStorageService.cs +++ b/LiteCharms.Features/Browser/LocalStorageService.cs @@ -1,8 +1,6 @@ -using LiteCharms.Features.Abstractions; +namespace LiteCharms.Features.Browser; -namespace LiteCharms.Features.Browser; - -public sealed class LocalStorageService(ProtectedLocalStorage storage) : IService +public sealed class LocalStorageService(ProtectedLocalStorage storage) { public async ValueTask DeleteAsync(string key) {