public ProtectedSessionStorage(EncryptionService encryptionService, ISessionStorageService sessionStorageService, ISyncSessionStorageService syncSessionStorageService) { _encryptionService = encryptionService; _sessionStorageService = sessionStorageService; _syncSessionStorageService = syncSessionStorageService; }
public static IServiceCollection AddProtectedLocalStore(this IServiceCollection services, EncryptionService encryptionService) { services.AddBlazoredLocalStorage(); services.AddBlazoredSessionStorage(); services.AddTransient(ec => encryptionService); services.AddScoped <ProtectedLocalStorage>(); services.AddScoped <ProtectedSessionStorage>(); return(services); }
public ProtectedLocalStorage(IJSRuntime jSRuntime, EncryptionService encryptionService, ILocalStorageService localStorageService, ISyncLocalStorageService syncLocalStorageService) { _encryptionService = encryptionService; _localStorageService = localStorageService; _syncLocalStorageService = syncLocalStorageService; }