Comments (7)
The System.Diagnostics.DiagnosticSource
is only included on netstandard2.0
net472
net462
and we cannot really use the one that is provided by .NET Framework. This is because we are using APIs that are only available on newer version of the library.
If I add System.Diagnostics.DiagnosticSource
as per your suggestion:
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Options" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" />
<Reference Include="System.Net.Http" Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'" />
<Reference Include="System.Diagnostics.DiagnosticSource" Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'" />
</ItemGroup>
The Polly.Extensions
cannot be built anymore:
from polly.
I'm lead to believe that removing dependencies is a breaking change (in fact, I hit this today in #2003 due to changes to Microsoft.Extensions.TimeProvider.Testing dropping seemingly redundant dependencies), so if that's the case this isn't something we'd do until there's a reason for a Polly v9 if we did.
from polly.
In the case here I am referring to polyfill package's ie ones which are natively provided by the framework without it needing to be explicitly added hence I don't see it as a breaking change.
from polly.
Yes I understand that, and this comment is what lead me to my comment: dotnet/extensions#5058 (review)
And also the fact that it actually broke the build in #2056 when I updated to Microsoft.Extensions.TimeProvider.Testing 8.4.0 without me adding the reference.
from polly.
I am still talking about polyfill package's and as such if a client is using System.Diagnostic.DiagnosticSource in their application/library it will still build as the framework will provide the library and likely even provide a newer version.
from polly.
@martintmk let me submit a PR tomorrow my time showing the change as your sample code is not quite what I am intending.
from polly.
Issue has been addressed already as part of the 8.4.0 release which has occured, hence closing issue
from polly.
Related Issues (20)
- [Question]: Request services from `AddTransientHttpErrorPolicy` HOT 2
- Refresh Authorization Code on When.All (causing multiple refresh authentications) HOT 14
- [Bug]: Pipeline disposed and cannot be used anymore HOT 16
- [Question]: Primary Hedging Resiliency Context not being propagated to Action Context? HOT 1
- [Question]: Usage of ExecuteOutcomeAsync HOT 8
- [Feature request]: StrategyHelper, DisposeHelper, TimeProviderExtensions, TaskHelper should be public not internal HOT 6
- [Question]: Mock Policy Timing behaviour HOT 3
- [Question]: How to use ExecuteAsync In VB.Net? HOT 8
- [Question]: How to respect 429 errors and Retry-After headers in Polly v8? HOT 14
- Deprecate all packages which are no longer maintained HOT 5
- Consider making Polly easier to consume from F# and Visual Basic
- Fix CI for macos-latest HOT 1
- [Feature request]: Conditionally set log levels for specific resilience policy HOT 1
- [Bug]: README has improper grammar, which makes the meaning unclear. HOT 2
- [Question]: Polly v8 AddPolicyHandler HOT 3
- Is there a way to execute an action AFTER a retry in Polly v8? HOT 7
- [Bug]: System.InvalidOperationException thrown when registering with AddResiliencePipeline in .NET 8 Isolated Function App HOT 1
- [Feature request]: Simplified and faster alternative to ExecuteOutcomeAsync HOT 5
- [Docs]: The main category pages are only available through the breadcrumbs HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from polly.