extensions
extensions copied to clipboard
This repository contains a suite of libraries that provide facilities commonly needed when creating production-ready applications.
Resolves #5164 ###### Microsoft Reviewers: [Open in CodeFlow](https://microsoft.github.io/open-pr/?codeflow=https://github.com/dotnet/extensions/pull/5167)
### Background and motivation Currently the top-level API methods for `Microsoft.Extensions.Http.Resilience` are: ```c# public static IHttpStandardResiliencePipelineBuilder AddStandardResilienceHandler(this IHttpClientBuilder builder); public static IStandardHedgingHandlerBuilder AddStandardHedgingHandler(this IHttpClientBuilder builder); ``` Both return an inner...
The current [documentation ](https://learn.microsoft.com/en-us/dotnet/core/resilience/http-resilience?tabs=dotnet-cli#standard-resilience-handler-defaults)is not saying anything about the default values for the total request timeout, attempt timeout, number of retries, circuit breaker break duration, failure ratio, etc when using...
In `R9` repository there are only `PackageReference Include="System.Net.Http"` In `dotnet/extensions` repository there is only `Reference Include="System.Net.Http"` I have tried to add `Microsoft.Extensions.Http.Resilience` package reference to internal R9 project and got...
When one of Extensions package is referenced in a .NET FX application, there will be a warning emitted: ``` warning : Microsoft.Extensions.Compliance.Abstractions 8.2.0 doesn't support net462 and has not been...
Fixes #5114 ###### Microsoft Reviewers: [Open in CodeFlow](https://microsoft.github.io/open-pr/?codeflow=https://github.com/dotnet/extensions/pull/5129)
### Description When using the Redaction libraries with the LoggerMessage / LogProperties I had expected that disabling Redaction would cause any property marked with redaction attributes would simply be logged...
### Background and motivation As a follow-up of this [comment](https://github.com/dotnet/extensions/issues/4915#issuecomment-1917444351) and this [issue](https://github.com/dotnet/runtime/issues/82465), I am proposing a more generalized solution below. Note: a new optional State with log record timestamps...
Fixes #5105 Add support for processing HttpRequestMessage objects containing StreamContent to the AddStandardHedgingHandler() resilience API. This change does not update any public API contracts. It updates internal and private API...
### Description Parsers for CGroups uses buffer for reading from the filesystem. The [buffer](https://github.com/dotnet/extensions/blob/10681a1cdb1e044b05341150203b94d5eec41557/src/Libraries/Microsoft.Extensions.Diagnostics.ResourceMonitoring/Linux/LinuxUtilizationParserCgroupV1.cs#L88) is one and shared between the calls. In case the methods are called in parallel the...