You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BlazorStorage.Services.LocalStorage': Cannot consume scoped service 'Microsoft.JSInterop.IJSRuntime' from singleton 'BlazorStorage.Interfaces.ILocalStorage'
#6
Open
AbbasNarimani opened this issue
Feb 4, 2021
· 1 comment
Hi,
I'm trying to add the persistent state capability of this package in my project, but unfortunately by adding "cfg.UseLocalStorage();" option, I face with the following exception
'ServiceType: BlazorStorage.Interfaces.ILocalStorage Lifetime: Singleton ImplementationType: BlazorStorage.Services.LocalStorage': Cannot consume scoped service 'Microsoft.JSInterop.IJSRuntime' from singleton 'BlazorStorage.Interfaces.ILocalStorage'.) (Error while validating the service descriptor 'ServiceType: BlazorStorage.Interfaces.ISessionStorage Lifetime: Singleton ImplementationType: BlazorStorage.Services.SessionStorage': Cannot consume scoped service 'Microsoft.JSInterop.IJSRuntime' from singleton 'BlazorStorage.Interfaces.ISessionStorage'.)'
here are more information:
net5.0
any help will be appreciated
The text was updated successfully, but these errors were encountered:
Hi,
I'm trying to add the persistent state capability of this package in my project, but unfortunately by adding "cfg.UseLocalStorage();" option, I face with the following exception
'ServiceType: BlazorStorage.Interfaces.ILocalStorage Lifetime: Singleton ImplementationType: BlazorStorage.Services.LocalStorage': Cannot consume scoped service 'Microsoft.JSInterop.IJSRuntime' from singleton 'BlazorStorage.Interfaces.ILocalStorage'.) (Error while validating the service descriptor 'ServiceType: BlazorStorage.Interfaces.ISessionStorage Lifetime: Singleton ImplementationType: BlazorStorage.Services.SessionStorage': Cannot consume scoped service 'Microsoft.JSInterop.IJSRuntime' from singleton 'BlazorStorage.Interfaces.ISessionStorage'.)'
here are more information:
net5.0
any help will be appreciated
The text was updated successfully, but these errors were encountered: