Open sandboxFocus

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.