Jaroslav Ruzicka
Jaroslav Ruzicka
The root cause is at [this line](https://github.com/microsoft/ApplicationInsights-dotnet/blob/e34286b4c8175d7ea47f9227c5b981d661cac470/NETCORE/src/Shared/Extensions/ApplicationInsightsExtensions.cs#L293) which fails if any keyed service is added to the service collection at the time. What needs to be done is to first...
@kotlarmilos, I guess you already tried so asking mainly to get better context - there is a DisposableObjectPool already in the dotnet/aspnetcore and it should be actually used when we...
@CaptainJackCode, I'm happy the fix works for you, I'll propose backporting it to net10.0 and let you know when it could be available.
@CaptainJackCode, unfortunately, we can't backport the fix to a 10.0.x patch because there may be invalid dependency graphs that currently resolve only due to the bug allowing duplicate singleton registrations....
@wadepickett, thank you for driving it. Copilot has a good point with the note, we may take it as an alternative proposal.
The behaviour you're describing, (`Get("somename")`, returning an empty instance when nothing has been registered for that name) is what the in-box `OptionsManager` / `OptionsFactory` happen to do: `OptionsFactory.Create` always activates...
@architdhakar, @adestr, as this issue likely involves public API changes, we would first need to have an API proposal, get it approved by the dotnet API review committee, and then...
I've extracted the API from the PR (only moved `Load` methods to extensions), please let me know if there is anything missing. Allow loading directly from a provider factory or...
@adestr, the latest proposal looks good to me. Thanks for putting it together. We’ll now take it through the API review process.
@adestr, we have the API approved, are you still happy to propose a PR for the new API? Or you prefer us to take care of it?