1 instantiation of DevTunnelPortStatus
Aspire.Hosting.DevTunnels.Tests (1)
17 references to DevTunnelPortStatus
Aspire.Hosting.DevTunnels (9)
DevTunnelCliClient.cs (8)
222public Task<DevTunnelPortStatus> CreatePortAsync(string tunnelId, int portNumber, DevTunnelPortOptions portOptions, ILogger? logger = default, CancellationToken cancellationToken = default)
225private async Task<DevTunnelPortStatus> CreatePortCoreAsync(string tunnelId, int portNumber, DevTunnelPortOptions portOptions, ILogger? logger, CancellationToken cancellationToken)
228var existing = await FindExistingAsync<DevTunnelPortStatus>(
256DevTunnelPortStatus? port = null;
266(port, exitCode, error) = await CallCliAsJsonAsync<DevTunnelPortStatus>(
375private static void ValidatePortIdentity(string tunnelId, int portNumber, DevTunnelPortStatus port)
587|| result is DevTunnelPortStatus port && (string.IsNullOrWhiteSpace(port.TunnelId) || port.PortNumber is < 1 or > 65535 || string.IsNullOrWhiteSpace(port.Protocol))
Aspire.Hosting.DevTunnels.Tests (8)
DevTunnelCliClientTests.cs (7)
337var result = await CreateClient(cli).CreatePortAsync("mytunnel.usw2", 3000, new()
414var port = await CreateClient(cli).CreatePortAsync("mytunnel.usw2", 3000,
436var port = await CreateClient(cli).CreatePortAsync("mytunnel.usw2", 3000,
458var port = await CreateClient(cli).CreatePortAsync("mytunnel.usw2", 3000,
540var port = await CreateClient(cli).CreatePortAsync("mytunnel.usw2", 3000,
558var result = await CreateClient(cli).CreatePortAsync("mytunnel.usw2", 3000, new()
575var result = await CreateClient(cli).CreatePortAsync("mytunnel.usw2", 3000, new() { Protocol = "http" });