Skip to content

Commit bbd2614

Browse files
authored
Remove Singleton registration instructions from README
Removed instructions for registering services as Singleton in Blazor WebAssembly.
1 parent b53dbe6 commit bbd2614

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

README.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,6 @@ public static async Task Main(string[] args)
4747

4848
If you use Blazored.LocalStorage or Blazored.SessionStorage with configuration those will need to be registered before Drogecode.Blazor.ExpireStorage.
4949

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.
59-
6050
## Usage (Blazor WebAssembly)
6151
example
6252

0 commit comments

Comments
 (0)