HTTP API Toolkit HTTP API Toolkit
HTTP API Toolkit HTTP API Toolkit
DocFX + Singulink = ♥

Search Results for

    Method AddShortLivedStore

    AddShortLivedStore(IServiceCollection, Action<MemoryShortLivedStoreOptions>?)

    Registers MemoryShortLivedStore as the IShortLivedStore, unless a store is already registered. Services that run on several servers register an IShortLivedStore backed by shared storage as a singleton instead, before or after calling this method.

    Declaration
    public static IServiceCollection AddShortLivedStore(this IServiceCollection services, Action<MemoryShortLivedStoreOptions>? configure = null)
    Parameters
    Type Name Description
    IServiceCollection services

    The service collection to add the services to.

    Action<MemoryShortLivedStoreOptions> configure

    An optional action to configure the options of the memory store, such as MaxSize.

    Returns
    Type Description
    IServiceCollection
    © Singulink. All rights reserved.