Skip to content

Conversation

Copilot
Copy link
Contributor

@Copilot Copilot AI commented Jul 5, 2025

This PR moves IInteractionService, InteractionService and related types from the Aspire.Hosting.ApplicationModel namespace to the Aspire.Hosting namespace as requested in the issue.

Changes Made

  • Moved files:

    • src/Aspire.Hosting/ApplicationModel/IInteractionService.cssrc/Aspire.Hosting/IInteractionService.cs
    • src/Aspire.Hosting/ApplicationModel/InteractionService.cssrc/Aspire.Hosting/InteractionService.cs
  • Updated namespace declarations: Changed from namespace Aspire.Hosting.ApplicationModel to namespace Aspire.Hosting in both files

  • Fixed namespace conflicts: Updated DashboardService.cs to use fully qualified names to disambiguate between the hosting types and Proto types (e.g., Aspire.Hosting.MessageIntent vs Aspire.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 namespace

  • Updated 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.

@Copilot Copilot AI changed the title [WIP] Move IInteractionService, InteractionService and related types to Aspire.Hosting namespace Move IInteractionService and related types to Aspire.Hosting namespace Jul 6, 2025
@Copilot Copilot AI requested a review from JamesNK July 6, 2025 00:02
Copilot finished work on behalf of JamesNK July 6, 2025 00:03
@JamesNK JamesNK marked this pull request as ready for review July 6, 2025 00:49
@Copilot Copilot AI review requested due to automatic review settings July 6, 2025 00:49
@JamesNK JamesNK requested a review from mitchdenny as a code owner July 6, 2025 00:49
@JamesNK JamesNK requested a review from davidfowl July 6, 2025 00:50
@JamesNK JamesNK added the area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication label Jul 6, 2025
Copy link
Contributor

@Copilot Copilot AI left a 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

@JamesNK JamesNK force-pushed the copilot/fix-10266 branch from 2ccfe77 to d3f5ffb Compare July 10, 2025 01:17
@JamesNK JamesNK requested review from adamint and eerhardt July 10, 2025 01:33
@JamesNK
Copy link
Member

JamesNK commented Jul 10, 2025

@adamint @eerhardt Please review. Everyone who works on app model is on holiday 🤷

@davidfowl davidfowl added this to the 9.4 milestone Jul 10, 2025
@davidfowl
Copy link
Member

Make sure to backport

@JamesNK JamesNK merged commit 31b8894 into main Jul 10, 2025
252 checks passed
@JamesNK JamesNK deleted the copilot/fix-10266 branch July 10, 2025 06:25
@JamesNK
Copy link
Member

JamesNK commented Jul 10, 2025

/backport to release/9.4

Copy link
Contributor

Started backporting to release/9.4: https://github.com/dotnet/aspire/actions/runs/16187751253

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move IInteractionService, InteractionService and related types to Aspire.Hosting namespace
3 participants