-
Notifications
You must be signed in to change notification settings - Fork 65
Move TeamsAttachmentDownloader to Core #492
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
base: main
Are you sure you want to change the base?
Conversation
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.
Pull Request Overview
This PR relocates the TeamsAttachmentDownloader class from the Teams Extensions library to the Core Builder library, improving code organization and reusability. The original implementation has been replaced with obsolete wrapper classes that delegate to the new location.
Key Changes:
- Moved
TeamsAttachmentDownloaderandTeamsAttachmentDownloaderOptionstoMicrosoft.Agents.Builder.App - Added obsolete wrappers in the original Teams Extensions location for backward compatibility
- Enhanced constructor parameter ordering and added default parameter handling for better usability
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
Microsoft.Agents.Extensions.Teams/App/TeamsAttachmentDownloader.cs |
Replaced implementation with obsolete wrapper classes that inherit from the new Core location |
Microsoft.Agents.Builder/App/TeamsAttachmentDownloader.cs |
New home for the TeamsAttachmentDownloader implementation with updated constructor signature |
Microsoft.Agents.Authentication/ConfigurationConnections.cs |
Added null/empty check for connection name parameter to prevent lookup failures |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
src/libraries/Extensions/Microsoft.Agents.Extensions.Teams/App/TeamsAttachmentDownloader.cs
Show resolved
Hide resolved
…t proper per-request provider
Fixes #504
Fixes #396
This also improves getting
IAccessTokenProviderbased on the current request (IConnections.GetTokenProvider).