Class ServicesConfiguration
Extension methods for registering the MemoryCache services into the dependency injection container.
Inherited Members
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. |