Skip to content

Migration question: strategy for Scoped services #442

@LuisM000

Description

@LuisM000

Hi!
We’re migrating a large Bot Framework solution (using TeamsActivityHandler) to the Microsoft 365 Agents SDK. Our code relies heavily on Scoped services across many layers.

As part of the migration, we’re switching to the new CloudAdapter, which enqueues tasks. I understand that HostedActivityService does not resolve IAgent within a scope, which could cause issues since it won’t share the same request scope.
However, we still need a safe way to use Scoped services per “turn.”

Questions:

  1. What’s the recommended migration approach for solutions that rely heavily on Scoped services?
  2. Will there be a “synchronous” adapter option (similar to Bot Framework) that processes inline, without using the background queue, to make migration smoother?

Thanks!

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions