Class ComponentBuilderCachingExtensions
Contains Microsoft.Extensions.Caching.Memory.IMemoryCache extension methods for IBaseTestBuilderWithComponentBuilder<TBuilder>.
Inheritance
System.Object
ComponentBuilderCachingExtensions
Namespace:MyTested.AspNetCore.Mvc
Assembly:MyTested.AspNetCore.Mvc.Caching.dll
Syntax
public static class ComponentBuilderCachingExtensions
Methods
| Improve this Doc View SourceWithMemoryCache<TBuilder>(IBaseTestBuilderWithComponentBuilder<TBuilder>, Action<IMemoryCacheBuilder>)
Sets initial values to the Microsoft.Extensions.Caching.Memory.IMemoryCache service.
Declaration
public static TBuilder WithMemoryCache<TBuilder>(this IBaseTestBuilderWithComponentBuilder<TBuilder> builder, Action<IMemoryCacheBuilder> memoryCacheBuilder)where TBuilder : IBaseTestBuilder
Parameters
Type | Name | Description |
---|---|---|
IBaseTestBuilderWithComponentBuilder<TBuilder> | builder | Instance of IBaseTestBuilderWithComponentBuilder<TBuilder> type. |
System.Action<IMemoryCacheBuilder> | memoryCacheBuilder | Action setting the Microsoft.Extensions.Caching.Memory.IMemoryCache values by using IMemoryCacheBuilder. |
Returns
Type | Description |
---|---|
TBuilder | The same component builder. |
Type Parameters
Name | Description |
---|---|
TBuilder | Class representing ASP.NET Core MVC test builder. |