Jaroslav Ruzicka
Jaroslav Ruzicka
## Page - https://learn.microsoft.com/dotnet/core/extensions/options - API reference for `IOptionsSnapshot`: https://learn.microsoft.com/dotnet/api/microsoft.extensions.options.ioptionssnapshot-1 ## Background This is a doc follow-up to [dotnet/runtime#53793](https://github.com/dotnet/runtime/issues/53793), which was closed as by-design. Several commenters on that issue asked...
Please see https://github.com/dotnet/runtime/issues/121256 There isn't much we can do in terms of code changes as any change would break a lot of users, however, we can help users understand the...
**Proposal options**: 1. `Dispose` should do sync-over-async 2. Update documentation that we throw from `Dispose` when we should call async When Dispose() is invoked on ServiceProviderEngineScope, the engine correctly disposes...
This is a spanning issue as we have multiple issuer related to host integration with either windows service or systemd flows. We should reconsider the integration as such rather then...
By the principles of IoC, classes should not own, or have any special knowledge of, their dependencies. Attempts to work around this tend to cause problems and usually result in...
**TL;DR.** A configuration value that is exactly $ref(<expression>) reads as the value of another key. Resolution happens on read, inside the configuration root, so it needs no new public API:...
Drop Grace from `Microsoft.Extensions.DependencyInjection.ExternalContainers.Tests` and the README's list of recognised third-party containers. Grace has now been explicitly sunset by its author. From the Grace README: > After many years of...
`Microsoft.Extensions.DependencyInjection` currently has two ways to register a service: a typed implementation (auto-wired by reflecting the constructor) or a `Func` factory. The factory route has two problems: 1. **Performance.** The...
The decorator pattern has been a long-standing request (#36021, ~5 years open). Every other mainstream .NET DI container supports it natively: Autofac, LightInject, DryIoc, SimpleInjector, Lamar. Scrutor offers a conservative...
Today every classic registration walks reflection at first resolution: discover the public constructor, validate parameter shapes, build an expression tree (or fall back to per-call reflection on Mono/AOT/profiled builds). That...