using Microsoft.Extensions.Caching.Memory; namespace OpenHarbor.JwtTokenManager; public class JwtTokenManagerBuilderOptions { internal Action? CacheOptions { get; set; } public Func? CacheFactory { get; set; } public Action? AdditionalConfiguration { get; set; } public JwtTokenManagerBuilderOptions Cache(Func? cacheFactory = null) { CacheFactory = cacheFactory; return this; } public JwtTokenManagerBuilderOptions Cache( Action cacheOptions, Func? cacheFactory = null) { CacheOptions = cacheOptions; return Cache(cacheFactory); } public JwtTokenManagerBuilderOptions Configuration( Action configureOptions) { AdditionalConfiguration = configureOptions; return this; } }