17 writes to Labels
Aspire.Hosting.DevTunnels (1)
DevTunnelResourceBuilderExtensions.cs (1)
601
portOptions.
Labels
??= [];
Aspire.Hosting.DevTunnels.Tests (16)
DevTunnelCliClientTests.cs (16)
20
Labels
= ["target", "https"]
52
await client.CreatePortAsync("mytunnel.usw2", 3000, new() { Description = "", Protocol = "http",
Labels
= ["label"] });
124
await client.CreatePortAsync("mytunnel.usw2", 3000, new() { Protocol = "http",
Labels
= ["label"], AllowAnonymous = true });
239
CreateClient(cli).CreatePortAsync("mytunnel.usw2", 3000, new() { Protocol = "http",
Labels
= ["label"], AllowAnonymous = true }));
298
await CreateClient(cli).CreatePortAsync("mytunnel.usw2", 3000, new() { Protocol = "http",
Labels
= ["label"], AllowAnonymous = allowAnonymous });
341
Labels
= ["label"],
354
await CreateClient(cli).CreatePortAsync("mytunnel.usw2", 3000, new() { Protocol = "http",
Labels
= ["label"] });
371
Labels
= ["label"],
415
new() { Protocol = "http",
Labels
= ["label"], AllowAnonymous = false }, cancellationToken: cts.Token);
437
new() { Protocol = "http",
Labels
= ["label"], AllowAnonymous = allowAnonymous });
459
new() { Protocol = "http",
Labels
= ["label"], AllowAnonymous = false });
474
new() { Protocol = "http",
Labels
= ["label"], AllowAnonymous = true });
489
new() { Protocol = "http",
Labels
= ["label"], AllowAnonymous = false });
518
new() { Protocol = "http",
Labels
= ["label"], AllowAnonymous = false }, cancellationToken: cts.Token);
541
new() { Protocol = "http",
Labels
= ["label"], AllowAnonymous = false });
562
Labels
= [label]
9 references to Labels
Aspire.Hosting.DevTunnels (9)
DevTunnelCli.cs (2)
196
.AddValues("--labels", options.
Labels
)
215
.AddValues("--add-labels", options.
Labels
)
DevTunnelCliClient.cs (1)
236
var labelsMatch = existing.Labels.ToHashSet(StringComparer.Ordinal).SetEquals(portOptions.
Labels
?? []);
DevTunnelOptions.cs (1)
110
internal string ToLoggerString() => $"{{ Description={Description}, AllowAnonymous={AllowAnonymous}, Protocol={Protocol}, Labels=[{string.Join(", ",
Labels
?? [])}] }}";
DevTunnelResourceBuilderExtensions.cs (5)
602
portOptions.
Labels
.Add(targetResource.Name);
603
portOptions.
Labels
.Add(targetEndpoint.EndpointName);
605
if (!TryValidateLabels(portOptions.
Labels
, out var errorMessage))
712
new("Labels", portOptions.
Labels
is null ? "" : $"{string.Join(", ", portOptions.
Labels
)}"),