DataWeb
Search Results for

    Show / Hide Table of Contents

    Class ServicesConfiguration

    Extension methods for registering the MemoryCache services into the dependency injection container.

    Inheritance
    object
    ServicesConfiguration
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: DataWeb.Cache.MemoryCache
    Assembly: DataWeb.Cache.MemoryCache.dll
    Syntax
    public static class ServicesConfiguration

    Methods

    AddDataWebCacheMemoryCache(IServiceCollection)

    Registers CacheService as the ICacheService singleton implementation. The registration is skipped if an ICacheService has already been registered.

    Declaration
    public static IServiceCollection AddDataWebCacheMemoryCache(this IServiceCollection services)
    Parameters
    Type Name Description
    IServiceCollection services

    The IServiceCollection to add the service to.

    Returns
    Type Description
    IServiceCollection

    The same IServiceCollection instance for chaining.

    In this article
    Back to top Generated by DocFX