Skip to content

Remove unused client name. - #54629

Merged
tmat merged 1 commit into
dotnet:release/10.0.4xxfrom
tmat:ClientName
Jun 8, 2026
Merged

tmat merged 1 commit into
dotnet:release/10.0.4xxfrom
tmat:ClientName

Conversation

@tmat

@tmat tmat commented Jun 6, 2026

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings June 6, 2026 22:35
@tmat
tmat requested a review from a team as a code owner June 6, 2026 22:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 removes an unused “client name” concept from dotnet watch hot reload client wiring by switching from ImmutableArray<(HotReloadClient client, string name)> to ImmutableArray<HotReloadClient>. This simplifies app model implementations and the HotReloadClients coordinator, reducing tuple deconstruction and eliminating unused string values.

Changes:

  • Replace managed-client creation APIs to return ImmutableArray<HotReloadClient> instead of (client, name) tuples.
  • Update HotReloadClients to operate on plain clients (iteration, list patterns, LINQ projections), and add a Clients accessor.
  • Update all app models that construct managed clients to use the new return type.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/Dotnet.Watch/Watch/AppModels/WebServerAppModel.cs Updates managed client creation to return plain HotReloadClient instances.
src/Dotnet.Watch/Watch/AppModels/WebApplicationAppModel.cs Changes the abstract factory signature and corresponding call site to use ImmutableArray<HotReloadClient>.
src/Dotnet.Watch/Watch/AppModels/MobileAppModel.cs Updates local client collection type and initialization to the new client-only shape.
src/Dotnet.Watch/Watch/AppModels/DefaultAppModel.cs Updates HotReloadClients construction to pass ImmutableArray<HotReloadClient> collection expressions.
src/Dotnet.Watch/Watch/AppModels/BlazorWebAssemblyHostedAppModel.cs Removes unused client-name labels (“client”/“host”) and returns only clients.
src/Dotnet.Watch/Watch/AppModels/BlazorWebAssemblyAppModel.cs Removes unused empty-name tuple and returns only the WebAssembly client.
src/Dotnet.Watch/HotReloadClient/HotReloadClients.cs Refactors internal logic from tuple-based clients to plain clients; adds Clients property.

@DustinCampbell DustinCampbell left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@tmat
tmat merged commit e9d78d6 into dotnet:release/10.0.4xx Jun 8, 2026
28 checks passed
@tmat
tmat deleted the ClientName branch June 8, 2026 16:33
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 11.0-preview6 milestone Jun 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants