Skip to content

[PORT] Replace UseState() with UseBotState()  #1046

@tomlm

Description

@tomlm

Port this change from botbuilder-dotnet/master branch:
microsoft/botbuilder-dotnet#3862

Fixes #3859
and use untyped params so that order and type are not fixed.
Tweak RegisterMiddlewareClass so you can provide the key for the turnstate.

Changed projects

  • Microsoft.Bot.Builder.Dialogs.Adaptive.Testing
  • Microsoft.Bot.Builder
  • Microsoft.Bot.Builder.AI.QnA.Tests
  • Microsoft.Bot.Builder.Dialogs.Adaptive.Templates.Tests
  • Microsoft.Bot.Builder.Dialogs.Adaptive.Tests
  • Microsoft.Bot.Builder.Dialogs.Declarative.Tests
  • Microsoft.Bot.Builder.Dialogs.Tests
  • Microsoft.Bot.Builder.TestBot.Json

Metadata

Metadata

Assignees

Labels

Area: EngineeringInternal issues that are related to improving code quality, refactorings, code cleanup, etc.P0Must Fix. Release-blockerR10Release 10 - August 17th, 2020

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions