Skip to content

Conversation

Copy link
Contributor

Copilot AI commented May 21, 2025

This PR changes the visibility of the RpcResourceState class from public to internal in both the Aspire.Cli and Aspire.Hosting packages.

Changes made:

  • Changed the class declaration from public class RpcResourceState to internal class RpcResourceState in src/Aspire.Cli/Backchannel/RpcResourceState.cs
  • Changed the class declaration from public class RpcResourceState to internal class RpcResourceState in src/Aspire.Hosting/Backchannel/RpcResourceState.cs

These are intentionally minimal changes since the class is only used internally within both packages. The changes don't affect any public API behavior, and all tests continue to pass.

Fixes #9455.

Warning

Firewall rules blocked me from connecting to one or more addresses

I tried to connect to the following addresses, but was blocked by firewall rules:

  • cdn.fwupd.org
    • Triggering command: /usr/bin/fwupdmgr refresh (dns block)
  • centralus.data.mcr.microsoft.com
    • Triggering command: dotnet publish /home/REDACTED/work/aspire/aspire/tests/testproject/TestProject.ServiceA/TestProject.ServiceA.csproj --configuration Release /t:PublishContainer /p:ContainerRepository=servicea (dns block)
  • dnceng.pkgs.visualstudio.com
    • Triggering command: dotnet publish /home/REDACTED/work/aspire/aspire/tests/testproject/TestProject.ServiceA/TestProject.ServiceA.csproj --configuration Release /t:PublishContainer /p:ContainerRepository=servicea (dns block)
  • pkgs.dev.azure.com
    • Triggering command: dotnet publish /home/REDACTED/work/aspire/aspire/tests/testproject/TestProject.ServiceA/TestProject.ServiceA.csproj --configuration Release /t:PublishContainer /p:ContainerRepository=servicea (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Make RpcResourceState internal in Aspire.Cli and Aspire.Hosting packages Make RpcResourceState internal in Aspire.Cli and Aspire.Hosting packages May 21, 2025
Copilot AI requested a review from mitchdenny May 21, 2025 23:54
Copilot finished work on behalf of mitchdenny May 21, 2025 23:54
@mitchdenny mitchdenny marked this pull request as ready for review May 21, 2025 23:55
Copilot AI review requested due to automatic review settings May 21, 2025 23:55
Copy link
Contributor

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 tightens the visibility of the RpcResourceState class to internal within both the Aspire.Cli and Aspire.Hosting packages, as it’s only used internally and not part of the public API.

  • Changed RpcResourceState from public to internal in Aspire.Hosting
  • Changed RpcResourceState from public to internal in Aspire.Cli

Reviewed Changes

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

File Description
src/Aspire.Hosting/Backchannel/RpcResourceState.cs Made RpcResourceState internal instead of public
src/Aspire.Cli/Backchannel/RpcResourceState.cs Made RpcResourceState internal instead of public
Comments suppressed due to low confidence (1)

@mitchdenny mitchdenny added this to the 9.4 milestone May 21, 2025
@mitchdenny mitchdenny enabled auto-merge (squash) May 21, 2025 23:56
@mitchdenny mitchdenny merged commit cd2eabe into main May 22, 2025
254 checks passed
@mitchdenny mitchdenny deleted the copilot/fix-9455 branch May 22, 2025 06:50
@github-actions github-actions bot locked and limited conversation to collaborators Jun 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make RpcResourceState internal in Aspire.Cli and Aspire.Hosting packages

3 participants