Add WithPerTenantOptions overload that exposes IServiceProvider
See original GitHub issueMy team has ran into several cases where having access to IServiceProvider
in the context of resolving options is necessary. We have achieved this by reimplementing WithPerTenantNamedOptions
, but having an out-of-the box override with the following signature would be preferred:
public FinbuckleMultiTenantBuilder<TTenantInfo> WithPerTenantNamedOptions<TOptions>(string? name,
Action<IServiceProvider, TOptions, TTenantInfo> tenantConfigureNamedOptions) where TOptions : class, new()
Issue Analytics
- State:
- Created 7 months ago
- Reactions:1
- Comments:10 (5 by maintainers)
Top Results From Across the Web
Issues · Finbuckle/Finbuckle.MultiTenant
Adding support for read replicas with EF Core store ... Add WithPerTenantOptions overload that exposes IServiceProvider enhancement pinned question.
Read more >Dependency injection guidelines - .NET
Instead, use an overload that includes the IServiceProvider for this reason. Disposable transient services are captured by the container for ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I probably can I the next two weeks – day job requires me to travel next week so either I will get no Finbuckle coding time or plenty of time–hard to say. If you have time I’d welcome a PR on that or otherwise use your own extension method for the time being.
Thanks for accepting my changes! I look forward to the next release featuring these changes 😀