mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 14:20:29 +01:00
Is it possible to start a WireMockServer with http and https without specifying a port? #448
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @zidad on GitHub (Sep 19, 2022).
Originally assigned to: @StefH on GitHub.
This only starts 1 the HTTPS url:
var server1 = WireMockServer.Start(port: null, ssl: true);And this requires me to specify ports:
so something like this?
@StefH commented on GitHub (Sep 21, 2022):
@zidad
This is not yet possible, I'll look into this.
@zidad commented on GitHub (Sep 21, 2022):
Much appreciated!
@StefH commented on GitHub (Sep 21, 2022):
@zidad
You can try preview version
1.5.6-ci-16455(https://github.com/WireMock-Net/WireMock.Net/wiki/MyGet-preview-versions)And use it like:
@StefH commented on GitHub (Sep 26, 2022):
@zidad, did you have time to test this?
@zidad commented on GitHub (Sep 26, 2022):
Hi @StefH, testing it as you typed this comment :)... just a sec
@zidad commented on GitHub (Sep 26, 2022):
@StefH it works for me, many thanks!
@StefH commented on GitHub (Sep 26, 2022):
Thanks for testing.
I'll merge this PR.
Note that in the final version, the enum will be named
HostingScheme/@StefH commented on GitHub (Sep 26, 2022):
https://github.com/WireMock-Net/WireMock.Net/pull/818