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
{{ message }}
This repository was archived by the owner on Nov 12, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 12, 2026. It is now read-only.
If the overload that takes a CancellationToken is deprecated, this rule should not fire.
Describe suggestions on how to achieve the rule
The Linq query in the beginning of the MethodHasCancellationTokenOverload method could filter methods with the ObsoleteAttribute attached to them.
Additional context
For example, the interface Microsoft.SematicKernel.IKernel (package version 0.18.230725.3-preview) has the method CreateNewContext with and without the CancellationToken parameter. The overload with the parameter is marked as deprecated.
In this case, imo the overload without the parameter schould be used, since using the other one would be much more dangerous.
Activity