Skip to content
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

Update BotState SaveChanges to implement CancellationToken #5921

Merged
merged 1 commit into from
Oct 18, 2021

Conversation

nimercer
Copy link
Contributor

Fixes #5920

Description

Currently BotState SaveChanges method ignores CancellationToken. This change passes the cancellation token on to the IStorage object, which already supports passing of Cancellation Token

Specific Changes

  • Passing cancellation token through from SaveChanges method to IStorage WriteAsync method

Testing

  • Not a new feature

@nimercer nimercer requested a review from a team as a code owner October 18, 2021 14:48
@nimercer nimercer changed the title Updaete BotState SaveChanges to implement CancellationToken Update BotState SaveChanges to implement CancellationToken Oct 18, 2021
@nimercer
Copy link
Contributor Author

@EricDahlvang, thanks for the approval! I don't have write access to be able to merge this pull request. If you're happy with it, do you mind merging it for me?

@EricDahlvang EricDahlvang merged commit 6c603b2 into microsoft:main Oct 18, 2021
gabog added a commit that referenced this pull request Oct 28, 2021
* Deprecate CosmosDbCustomClientOptions (#5910)

* Deprecate CosmosDbCustomClientOptions

* Add using for System to CosmosDbCustomClientOptions

* New pipelines for the new vNextPrototype branch (#5912)

* Set up vNextPrototype pipelines

* Remove copy publish DLLs

* Add skipComponentGovernanceDetection: true

* Comment fix

* Removed commented-out code

* Upgrade AspNetCore.Mvc.NewtonsoftJson (#5916)

* Streaming Library Refactor (#5908)

* Fix build break. (#5918)

* Fix build break.

* Add icon.png to new streaming library.

* Updaete BotState SaveChanges to implement CancellationToken (#5921)

Thanks @nimercer

* Update preview builds version (#5919)

* fix comparison policy of string in adaptive expressions (#5925)

* MSAL: Update to Microsoft.Identity.Client v4.37 to allow sendX5C configuration in bot startups (#5927)

* Add */* accept header to ConnectorClient httpclient (#5926)

* Add applicaiton/json accept header to ConnectorClient httpclient

* Change application/json to */* for accept header

Co-authored-by: Eric Dahlvang <erdahlva@microsoft.com>
Co-authored-by: BruceHaley <v-brucehaley@microsoft.com>
Co-authored-by: Muthuveer Somanathan <41929942+msomanathan@users.noreply.github.com>
Co-authored-by: nimercer <48482128+nimercer@users.noreply.github.com>
Co-authored-by: Monica Rivera <44449640+mrivera-ms@users.noreply.github.com>
Co-authored-by: Hongyang Du (hond) <hond@microsoft.com>
Co-authored-by: Carlos Castro <carlosscastro@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cancellation Token ignored in BotState SaveChangesAsync
3 participants