Botframework V4 Middleware does not get invoked when BotController Class is added

292 Views Asked by At

Middleware classes of chatbot made in Botframework V4 worked perfectly.

But, on upgrading Botbuilder and related packages, introduced BotController class / API Controller and now MiddleWare class is no longer invoked and BotController seems to be working as middleware.

  • How do I fix this so that, the Middleware gets invoked despite BotController class / API Controller ?

  • Would appreciate support as, am stuck with this for quite some time :(

  • Is this related to some sequencing which needs to be done in the Startup.cs .. Pls. Help

1

There are 1 best solutions below