JustArchiNET / ArchiSteamFarm

C# application with primary purpose of farming Steam cards from multiple accounts simultaneously.
Apache License 2.0
11.06k stars 1.04k forks source link

[BREAKING] Make `WebBrowser` and `ArchiWebHandler` support cancellation #3067

Closed JustArchi closed 9 months ago

JustArchi commented 9 months ago

Checklist

Enhancement purpose

Underlying HttpClient supports cancellation, allow callers to use it if they need to.

Solution

CancellationToken cancellationToken = default + passing it around in all our code.

Why currently available solutions are not sufficient?

There is no reason why callers shouldn't be able to use this mechanism if they want to.

Can you help us with this enhancement idea?

Yes, I can code the solution myself and send a pull request

Additional info

Breaking change for all inheritors, don't ship before .NET 8 when we break more things.