Add clarifying comments for service discovery port registration #129
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The template generated projects with service discovery (Eureka/Consul) but lacked context on how port registration works, particularly for local development.
Changes
Program.csDynamicPortAssignmentHostedServicereads fromIServerAddressesFeature)Example Output
Steeltoe v4 with Eureka:
Steeltoe v3 with cloud hosting:
Technical Notes
No changes to
appsettings.Development.jsonneeded - Steeltoe v4'sDynamicPortAssignmentHostedServiceautomatically detects ports after server startup. Steeltoe v3 correctly uses ports fromlaunchSettings.json.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
8yfvsblobprodwus2171.blob.core.windows.net/usr/bin/dotnet dotnet restore --no-dependencies /home/REDACTED/work/NetCoreToolTemplates/.codeql-scratch/dbs/csharp/working/6976045FF0075E801429782E65F3A860/missingpackages_workingdir --packages /home/REDACTED/work/NetCoreToolTemplates/.codeql-scratch/dbs/csharp/working/missingpackages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal --configfile /home/REDACTED/work/NetCoreToolTemplates/.codeql-scratch/dbs/csharp/working/nugetconfig/nuget.config --force conf�� onfig/nuget.config credential.username rgo/bin/bash(dns block)docs.steeltoe.io/usr/bin/curl curl -s REDACTED(dns block)/home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js(dns block)xumvsblobprodwus213.blob.core.windows.net/usr/share/dotnet/dotnet dotnet new steeltoe-webapi --discovery-eureka --steeltoe 4.*-main-* --framework net8.0 --language C#(dns block)/usr/share/dotnet/dotnet dotnet build /p:TreatWarningsAsErrors=True /p:EnforceCodeStyleInBuild=True /p:GenerateDocumentationFile=True(dns block)/usr/share/dotnet/dotnet dotnet new steeltoe-webapi --discovery-eureka --steeltoe 4.*-main-* --framework net10.0 --language C#(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.