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
Copy file name to clipboardExpand all lines: README.md
-10Lines changed: 0 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,16 +47,6 @@ public static async Task Main(string[] args)
47
47
48
48
If you use Blazored.LocalStorage or Blazored.SessionStorage with configuration those will need to be registered before Drogecode.Blazor.ExpireStorage.
49
49
50
-
### Registering services as Singleton - Blazor WebAssembly **ONLY**
51
-
99% of developers will want to register Blazored LocalStorage using the method described above. However, in some very specific scenarios
52
-
developer may have a need to register services as Singleton as apposed to Scoped. This is possible by using the following method:
53
-
54
-
```csharp
55
-
builder.Services.AddExpireStorageAsSingleton();
56
-
```
57
-
58
-
This method will not work with Blazor Server applications as Blazor's JS interop services are registered as Scoped and cannot be injected into Singletons.
0 commit comments