You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, all public methods in HaveIBeenPwnedClient have two versions: One with a CancellationToken and one without. In the modern .NET world, there's a big push to either requiring cancellation tokens (or a explicit CancellationToken.None when cancelling is not important) or have an optional parameter with the cancellation token with a default value.
I prefer being as explicit in code as possible so for vFuture I'd like to remove the methods without a cancellation token. That means that in coming v6.x/V7 upgrades, we must mark the methods in (I)HaveIBeenPwnedClient without a CancellationToken with an ObsoleteAttribute with an appropriate worded warning.
We must also update the IntelliSense docs on the methods with a CancellationToken that CancellationToken.None can be used to when cancellation is not required or a cancellation token source is not available.
The text was updated successfully, but these errors were encountered:
Currently, all public methods in
HaveIBeenPwnedClient
have two versions: One with aCancellationToken
and one without. In the modern .NET world, there's a big push to either requiring cancellation tokens (or a explicitCancellationToken.None
when cancelling is not important) or have an optional parameter with the cancellation token with adefault
value.I prefer being as explicit in code as possible so for vFuture I'd like to remove the methods without a cancellation token. That means that in coming v6.x/V7 upgrades, we must mark the methods in
(I)HaveIBeenPwnedClient
without aCancellationToken
with anObsoleteAttribute
with an appropriate worded warning.We must also update the IntelliSense docs on the methods with a
CancellationToken
thatCancellationToken.None
can be used to when cancellation is not required or a cancellation token source is not available.The text was updated successfully, but these errors were encountered: