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
danielmarbach
changed the title
NSB0002: CancellationToken analyzer does not handle fluent invocations properly
NSB0002: CancellationToken analyzer adds the cancellation token into the wrong place for fluent API calls
Jun 5, 2023
DavidBoike
changed the title
NSB0002: CancellationToken analyzer adds the cancellation token into the wrong place for fluent API calls
Analyzer rule NSB0002 adds the CancellationToken to the wrong place for fluent API calls
Jun 16, 2023
Describe the bug
Originally raised by @SimonCropp
Description
For fluent style invocations, the cancellation token analyzer finds the right method that misses the cancellation token parameter
but does add the parameter to the first method invocation instead of the one that actually accepts the cancellation token
Versions
All supported versions that contain the analyzer
Additional Information
Workarounds
Manually fixing the analyzer code
Possible solutions
Additional information
The text was updated successfully, but these errors were encountered: