-
Notifications
You must be signed in to change notification settings - Fork 707
Move IInteractionService and related types to Aspire.Hosting namespace #10267
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
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 moves interaction service types from the Aspire.Hosting.ApplicationModel namespace into Aspire.Hosting and updates all references accordingly.
- Files for
IInteractionService,InteractionService, and related model types are relocated and their namespaces updated. DashboardServicemappings now use fully qualified Proto namespaces to disambiguate between hosting and dashboard types.- Removed obsolete
using Aspire.Hosting.ApplicationModeldirectives and updated test code to reference the new namespace.
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| tests/Aspire.Hosting.Tests/Dashboard/DashboardServiceTests.cs | Updated test to use Aspire.Hosting.InteractionInput |
| src/Aspire.Hosting/VersionChecking/VersionCheckService.cs | Removed unused using Aspire.Hosting.ApplicationModel |
| src/Aspire.Hosting/Publishing/PublishingActivityProgressReporter.cs | Removed unused using Aspire.Hosting.ApplicationModel |
| src/Aspire.Hosting/InteractionService.cs | Changed namespace from Aspire.Hosting.ApplicationModel to Aspire.Hosting |
| src/Aspire.Hosting/IInteractionService.cs | Changed namespace from Aspire.Hosting.ApplicationModel to Aspire.Hosting |
| src/Aspire.Hosting/Dashboard/DashboardService.cs | Switched using static to new namespace and fully qualified Proto mappings |
2ccfe77 to
d3f5ffb
Compare
|
Make sure to backport |
|
/backport to release/9.4 |
|
Started backporting to release/9.4: https://github.com/dotnet/aspire/actions/runs/16187751253 |
This PR moves
IInteractionService,InteractionServiceand related types from theAspire.Hosting.ApplicationModelnamespace to theAspire.Hostingnamespace as requested in the issue.Changes Made
Moved files:
src/Aspire.Hosting/ApplicationModel/IInteractionService.cs→src/Aspire.Hosting/IInteractionService.cssrc/Aspire.Hosting/ApplicationModel/InteractionService.cs→src/Aspire.Hosting/InteractionService.csUpdated namespace declarations: Changed from
namespace Aspire.Hosting.ApplicationModeltonamespace Aspire.Hostingin both filesFixed namespace conflicts: Updated
DashboardService.csto use fully qualified names to disambiguate between the hosting types and Proto types (e.g.,Aspire.Hosting.MessageIntentvsAspire.DashboardService.Proto.V1.MessageIntent)Removed unnecessary using statements: Cleaned up files that no longer need
using Aspire.Hosting.ApplicationModelsince the types are now in the same namespaceUpdated test references: Fixed test code to reference the types in their new namespace location
Types Moved
The following types are now in the
Aspire.Hostingnamespace:IInteractionServiceInteractionServiceInteractionInputInputTypeMessageIntentInteractionResult<T>InputsDialogInteractionOptionsMessageBoxInteractionOptionsMessageBarInteractionOptionsInteractionOptionsInputsDialogValidationContextAll builds and tests pass successfully after the migration.
Fixes #10266.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.