Open sandboxFocus
  • TOC

Metalama Documentation

Getting started

Video tutorials

Conceptual documentation

Commented examples

API documentation

  • Article

Method AddMetalamaCaching

AddMetalamaCaching(IServiceCollection, Action<ICachingServiceBuilder>?)

Adds Metalama's ICachingService to the IServiceCollection.

Declaration
public static IServiceCollection AddMetalamaCaching(this IServiceCollection serviceCollection, Action<ICachingServiceBuilder>? build = null)
Parameters
Type Name Description
IServiceCollection serviceCollection

The IServiceCollection.

Action<ICachingServiceBuilder> build

An optional delegate allowing to configure the ICachingService.

Returns
Type Description
IServiceCollection

The same serviceCollection.

  • Navigation