-
Notifications
You must be signed in to change notification settings - Fork 696
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. DashboardService
mappings now use fully qualified Proto namespaces to disambiguate between hosting and dashboard types.- Removed obsolete
using Aspire.Hosting.ApplicationModel
directives 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
,InteractionService
and related types from theAspire.Hosting.ApplicationModel
namespace to theAspire.Hosting
namespace as requested in the issue.Changes Made
Moved files:
src/Aspire.Hosting/ApplicationModel/IInteractionService.cs
→src/Aspire.Hosting/IInteractionService.cs
src/Aspire.Hosting/ApplicationModel/InteractionService.cs
→src/Aspire.Hosting/InteractionService.cs
Updated namespace declarations: Changed from
namespace Aspire.Hosting.ApplicationModel
tonamespace Aspire.Hosting
in both filesFixed namespace conflicts: Updated
DashboardService.cs
to use fully qualified names to disambiguate between the hosting types and Proto types (e.g.,Aspire.Hosting.MessageIntent
vsAspire.DashboardService.Proto.V1.MessageIntent
)Removed unnecessary using statements: Cleaned up files that no longer need
using Aspire.Hosting.ApplicationModel
since 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.Hosting
namespace:IInteractionService
InteractionService
InteractionInput
InputType
MessageIntent
InteractionResult<T>
InputsDialogInteractionOptions
MessageBoxInteractionOptions
MessageBarInteractionOptions
InteractionOptions
InputsDialogValidationContext
All 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.