Esempio n. 1
0
 /// <summary>
 /// Adds an empty, case-insensitive InMemoryStore to the application.
 /// </summary>
 public static FinbuckleMultiTenantBuilder WithInMemoryStore(this FinbuckleMultiTenantBuilder builder)
 => builder.WithInMemoryStore(true);
Esempio n. 2
0
 public static FinbuckleMultiTenantBuilder WithInMemoryStore(this FinbuckleMultiTenantBuilder builder,
                                                             IConfigurationSection configurationSection,
                                                             bool ignoreCase)
 => builder.WithInMemoryStore(o => configurationSection.Bind(o), ignoreCase);
Esempio n. 3
0
 /// <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);
Esempio n. 4
0
 /// <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>(_ => {});