Skip to content

feat: Support getting all mapped ports#1485

Merged
HofmeisterAn merged 3 commits intodevelopfrom
feature/named-pipe-connection-timeout-custom-configuration
Jul 17, 2025
Merged

feat: Support getting all mapped ports#1485
HofmeisterAn merged 3 commits intodevelopfrom
feature/named-pipe-connection-timeout-custom-configuration

Conversation

@HofmeisterAn
Copy link
Collaborator

What does this PR do?

The PR extends the IContainer interface by adding two new methods. GetMappedPublicPort() returns the first assigned public host port, while GetMappedPublicPorts() returns a dictionary with all the assigned public host ports.

Why is it important?

The change makes it easier for developers to iterate over the assigned public host ports. ChatGPT fragen

Related issues

@HofmeisterAn HofmeisterAn added the enhancement New feature or request label Jul 16, 2025
@netlify
Copy link

netlify bot commented Jul 16, 2025

Deploy Preview for testcontainers-dotnet ready!

Name Link
🔨 Latest commit fdb3a1e
🔍 Latest deploy log https://app.netlify.com/projects/testcontainers-dotnet/deploys/6878004c9050000009175599
😎 Deploy Preview https://deploy-preview-1485--testcontainers-dotnet.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@HofmeisterAn HofmeisterAn merged commit 7669b5e into develop Jul 17, 2025
137 checks passed
@HofmeisterAn HofmeisterAn deleted the feature/named-pipe-connection-timeout-custom-configuration branch July 17, 2025 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Enhancement]: Add API to enumerate all port mappings of a IContainer

1 participant