-
Notifications
You must be signed in to change notification settings - Fork 486
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Style: Async method nomenclature, missing ConfigureAwait and CancellationTokens #3892
Conversation
libraries/Microsoft.Bot.Builder.Dialogs.Adaptive/Actions/DeleteProperty.cs
Outdated
Show resolved
Hide resolved
libraries/Microsoft.Bot.Builder.Dialogs.Adaptive/Actions/DeleteProperties.cs
Outdated
Show resolved
Hide resolved
libraries/Microsoft.Bot.Builder.Dialogs.Adaptive/Actions/EditArray.cs
Outdated
Show resolved
Hide resolved
libraries/Microsoft.Bot.Builder.Dialogs.Adaptive/TriggerSelector.cs
Outdated
Show resolved
Hide resolved
libraries/Microsoft.Bot.Builder.Dialogs.Declarative/Resources/FileResource.cs
Show resolved
Hide resolved
libraries/Microsoft.Bot.Builder.Dialogs.Declarative/Resources/ResourceExplorer.cs
Show resolved
Hide resolved
@@ -388,7 +388,7 @@ public async Task<JToken> ResolveRefAsync(JToken refToken, SourceContext sourceC | |||
} | |||
} | |||
|
|||
var (json, range) = await ReadTokenRangeAsync(resource, sourceContext); | |||
var (json, range) = await ReadTokenRangeAsync(resource, sourceContext).ConfigureAwait(false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cancellation token
#Resolved
@@ -53,7 +54,24 @@ protected virtual string GetInternalVersion() | |||
/// | |||
/// This should be called at the start of `beginDialog()`, `continueDialog()`, and `resumeDialog()`. | |||
/// </remarks> | |||
protected virtual async Task CheckForVersionChangeAsync(DialogContext dc) | |||
protected virtual Task CheckForVersionChangeAsync(DialogContext dc) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a bit weird - why not plumb through the cancellation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh because it is in the dialogs assembly and it is abreaking change to binary level backward compat
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @johnataylor ! Code analisys detects ConfigureAwait and async names but not cancellation tokens so it's more manual. Appreciate the detailed review, new iteration incoming |
Fixes #3889