/// <summary> /// Initializes a new instance of the <see cref="TenantOptionsFactory{TOptions,TTenant,TKey}"/> class. /// </summary> /// <param name="setups">IEnumerable of <see cref="IConfigureOptions{TOptions}"/></param> /// <param name="postConfigures">IEnumerable of <see cref="IPostConfigureOptions{TOptions}"/></param> /// <param name="tenantConfig">The action <see cref="Action{TOptions, TTenant}"/></param> /// <param name="tenantAccessor">The tenancycontext accessor.</param> public TenantOptionsFactory( IEnumerable <IConfigureOptions <TOptions> > setups, IEnumerable <IPostConfigureOptions <TOptions> > postConfigures, Action <TOptions, TTenant> tenantConfig, ITenancyContextAccessor <TTenant, TKey> tenantAccessor) { this.setups = setups; this.postConfigures = postConfigures; this.tenantAccessor = tenantAccessor; this.tenantConfig = tenantConfig; }
/// <summary> /// Initializes a new instance of the <see cref="TenantOptionsCache{TOptions,TTenant,TKey}"/> class. /// </summary> /// <param name="tenantAccessor">The accessor for the tenantcontext.</param> public TenantOptionsCache(ITenancyContextAccessor <TTenant, TKey> tenantAccessor) { _tenantAccessor = tenantAccessor; }