extensions
extensions copied to clipboard
This repository contains a suite of libraries that provide facilities commonly needed when creating production-ready applications.
### Description Resource Monitoring for Windows reports memory usage of the process the app is running in. Instead of that, it should consider memory usage of all the processes running...
### Background and motivation Many clients trying to use the `AddStandardHedgingHandler()` resilience API based on top of Polly v8 have requirements that force them to send `HttpRequestMessage` objects that contain...
Metric names in ResourceUtilizationInstruments have incorrect keys https://github.com/dotnet/extensions/blob/10681a1cdb1e044b05341150203b94d5eec41557/src/Libraries/Microsoft.Extensions.Diagnostics.ResourceMonitoring/ResourceUtilizationInstruments.cs 1. `public const string CpuUtilization = "process.cpu.utilization";` - in reality, the CPU utilization is measured for all processes in a container, not...
Right now we have caching of instruments in Metrics source-gen: https://github.com/dotnet/extensions/blob/7271d1923ef31670feefbcba1e55751dcc3e6bfa/src/Generators/Microsoft.Gen.Metrics/MetricFactoryEmitter.cs#L109 The original issue https://github.com/dotnet/runtime/issues/84713 was resolved in `System.Diagnostics.DiagnosticSource` of version 8, thus we can check its version during generation...
### Background and motivation I'm using reflection to get around FakeTimeProvider inability to go backwards. Would be nice if a bool could be added to allow setting time earlier. Thanks...
Currently, `Microsoft.Extensions.TimeProvider.Testing` targets .NET Framework 4.6.2, .NET 8, and .NET 9. Would it be possible to add .NET Standard 2.1 as a target? The code itself seems to be fine,...
For more info, look a this PR: https://github.com/dotnet/runtime/pull/101660 cc: @tarekgh
### Description We have a .NET 8 project where we add a reference to a package that includes a dependency on `Microsoft.Extensions.Http.Resilience`. That project also uses `[LoggerMessage]` to take advantage...
###### Microsoft Reviewers: [Open in CodeFlow](https://microsoft.github.io/open-pr/?codeflow=https://github.com/dotnet/extensions/pull/5220)