question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add WithPerTenantOptions overload that exposes IServiceProvider

See original GitHub issue

My 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:closed
  • Created 7 months ago
  • Reactions:1
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
AndrewTriesToCodecommented, Feb 18, 2023

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.

0reactions
goldsamcommented, Aug 14, 2023

Thanks for accepting my changes! I look forward to the next release featuring these changes 😀

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found