Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@danspark
Copy link

Description

This pull request makes a minor documentation clarification in the KafkaServerResource class. The summary comment for the PrimaryEndpoint property is updated to clarify that the InternalEndpoint is intended for container-to-Kafka broker communication, not host process communication.

  • Documentation update:
    • KafkaServerResource.cs: Updated the XML summary of the PrimaryEndpoint property to specify that InternalEndpoint should be used for container-to-Kafka broker communication instead of host processes.

Checklist

  • Is this feature complete?
    • Yes. Ready to ship.
    • No. Follow-up changes expected.
  • Are you including unit tests for the changes and scenario tests if relevant?
    • Yes
    • No
  • Did you add public API?
    • Yes
      • If yes, did you have an API Review for it?
        • Yes
        • No
      • Did you add <remarks /> and <code /> elements on your triple slash comments?
        • Yes
        • No
    • No
  • Does the change make any security assumptions or guarantees?
    • Yes
      • If yes, have you done a threat model and had a security review?
        • Yes
        • No
    • No
  • Does the change require an update in our Aspire docs?

Copilot AI review requested due to automatic review settings December 16, 2025 02:47
@github-actions
Copy link
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 13585

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 13585"

@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Dec 16, 2025
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 fixes a documentation error in the KafkaServerResource class by clarifying that the InternalEndpoint property should be used for container-to-Kafka broker communication, not host process communication.

Key change:

  • Corrected the XML documentation comment for the PrimaryEndpoint property to accurately describe when to use InternalEndpoint

/// <summary>
/// Gets the primary endpoint for the Kafka broker. This endpoint is used for host processes to Kafka broker communication.
/// To connect to the Kafka broker from a host process, use <see cref="InternalEndpoint"/>.
/// To connect to the Kafka broker from a container, use <see cref="InternalEndpoint"/>.
Copy link

Copilot AI Dec 16, 2025

Choose a reason for hiding this comment

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

The documentation update correctly clarifies that InternalEndpoint should be used for container-to-Kafka communication. However, the InternalEndpoint property documentation at line 39-41 now has inconsistent guidance. It states "To connect to the Kafka broker from a host process, use PrimaryEndpoint" which is correct, but it should also be updated to clarify its own purpose more explicitly to match the pattern used here.

For consistency, consider updating the InternalEndpoint summary to read: "Gets the internal endpoint for the Kafka broker. This endpoint is used for container to Kafka broker communication. To connect to the Kafka broker from a host process, use ..."

This would make both endpoints' documentation follow the same pattern: stating what the current endpoint is for, then directing to the other endpoint for the alternative scenario.

Copilot uses AI. Check for mistakes.
Copy link
Author

Choose a reason for hiding this comment

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

It already is like that though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution Indicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant