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
D2L0055 requires that awaited tasks are configured, but does not enforce an opinion of the continueOnCapturedContext value. A new analyzer should be created to look at ConfigureAwait invocations and require that continueOnCapturedContext is passed false.
voidFoo(){Taskt=Task.Delay(1000).ConfigureAwait(true);// D2LXXXX: Tasks are required to be configured with 'continueOnCapturedContext' as falseTask<int>tInt=Bar().ConfigureAwait(continueOnCapturedContext:true);// D2LXXXX: Tasks are required to be configured with 'continueOnCapturedContext' as falseTask.CompletedTask.ConfigureAwait(false);Task.FromResult(1).ConfigureAwait(continueOnCapturedContext:false);}
A codefix which replaces the invocation with ConfigureAwait( continueOnCapturedContext: false ) would be an extra bonus.
The text was updated successfully, but these errors were encountered:
D2L0055 requires that
await
ed tasks are configured, but does not enforce an opinion of thecontinueOnCapturedContext
value. A new analyzer should be created to look atConfigureAwait
invocations and require thatcontinueOnCapturedContext
is passedfalse
.A codefix which replaces the invocation with
ConfigureAwait( continueOnCapturedContext: false )
would be an extra bonus.The text was updated successfully, but these errors were encountered: