Open sandboxFocus

Method Create

Create(Action<ICachingServiceBuilder>?, IServiceProvider?)

Creates a new instance of the CachingService class with the specified configuration.

Declaration
public static CachingService Create(Action<ICachingServiceBuilder>? build = null, IServiceProvider? serviceProvider = null)
Parameters
Type Name Description
Action<ICachingServiceBuilder> build

An optional delegate to configure the service using ICachingServiceBuilder.

IServiceProvider serviceProvider

An optional IServiceProvider for resolving dependencies.

Returns
Type Description
CachingService

A configured CachingService instance.