/// <summary> /// Adds an empty, case-insensitive InMemoryStore to the application. /// </summary> public static FinbuckleMultiTenantBuilder WithInMemoryStore(this FinbuckleMultiTenantBuilder builder) => builder.WithInMemoryStore(true);
public static FinbuckleMultiTenantBuilder WithInMemoryStore(this FinbuckleMultiTenantBuilder builder, IConfigurationSection configurationSection, bool ignoreCase) => builder.WithInMemoryStore(o => configurationSection.Bind(o), ignoreCase);
/// <summary> /// Adds and configures a case-insensitive InMemoryStore to the application using the provided action. /// </summary> /// <param name="config">A delegate or lambda for configuring the tenant.</param> /// <param name="ignoreCase">Whether the store should ignore case.</param> public static FinbuckleMultiTenantBuilder WithInMemoryStore(this FinbuckleMultiTenantBuilder builder, Action <InMemoryStoreOptions> config) => builder.WithInMemoryStore(config, true);
/// <summary> /// Adds an empty InMemoryStore to the application. /// </summary> /// <param name="ignoreCase">Whether the store should ignore case.</param> public static FinbuckleMultiTenantBuilder <TTenantInfo> WithInMemoryStore <TTenantInfo>(this FinbuckleMultiTenantBuilder <TTenantInfo> builder) where TTenantInfo : class, ITenantInfo, new() => builder.WithInMemoryStore <TTenantInfo>(_ => {});