Class ShortLivedStoreKeys
Provides the service keys of the IShortLivedStore of each feature of the toolkit, which resolves its store as a keyed service with its key.
Namespace: Singulink.Net.Http.Api.Service
Assembly: Singulink.Net.Http.Api.Service.dll
Syntax
public static class ShortLivedStoreKeys
Remarks
AddShortLivedStore(IServiceCollection, Action<MemoryShortLivedStoreOptions>?) registers a store for every key (AnyKey): while the app's
IShortLivedStore is the default MemoryShortLivedStore, each key gets a memory store of its own, so that one feature can't fill
the memory of another, configured with the named options of its key, such as
services.Configure<MemoryShortLivedStoreOptions>(ShortLivedStoreKeys.Uploads, o => o.MaxSize = ...). Once the app registers an
IShortLivedStore of its own, every key gets that store.
A store registered for a key, such as with
services.AddKeyedSingleton<IShortLivedStore>(ShortLivedStoreKeys.Uploads, ...), takes the place of that key's store, and one registered for
AnyKey the place of every key's. The app's own values keep using the IShortLivedStore registered without a key.
Fields
| Name | Description |
|---|---|
| RateLimiting | The key of the store of the counts of client rate limits. |
| SignIn | The key of the store of sign-in codes (see SignInCodes), device links (see DeviceLinks) and passkey ceremonies. |
| Uploads | The key of the store of chunked uploads, which keeps the counts of open uploads and the cancellations of uploads. |