16 writes to AllowAnonymous
Aspire.Hosting.DevTunnels (2)
DevTunnelResourceBuilderExtensions.cs (2)
272return tunnelBuilder.WithReference(resourceBuilder, new DevTunnelPortOptions { AllowAnonymous = allowAnonymous }); 329=> tunnelBuilder.WithReference(targetEndpoint, new DevTunnelPortOptions { AllowAnonymous = allowAnonymous });
Aspire.Hosting.DevTunnels.Tests (14)
DevTunnelCliClientTests.cs (14)
124await client.CreatePortAsync("mytunnel.usw2", 3000, new() { Protocol = "http", Labels = ["label"], AllowAnonymous = true }); 239CreateClient(cli).CreatePortAsync("mytunnel.usw2", 3000, new() { Protocol = "http", Labels = ["label"], AllowAnonymous = true })); 271CreateClient(cli).CreatePortAsync("mytunnel.usw2", 3000, new() { AllowAnonymous = false })); 298await CreateClient(cli).CreatePortAsync("mytunnel.usw2", 3000, new() { Protocol = "http", Labels = ["label"], AllowAnonymous = allowAnonymous }); 314CreateClient(cli).CreatePortAsync("mytunnel.usw2", 3000, new() { AllowAnonymous = false })); 342AllowAnonymous = anonymous 372AllowAnonymous = anonymous 415new() { Protocol = "http", Labels = ["label"], AllowAnonymous = false }, cancellationToken: cts.Token); 437new() { Protocol = "http", Labels = ["label"], AllowAnonymous = allowAnonymous }); 459new() { Protocol = "http", Labels = ["label"], AllowAnonymous = false }); 474new() { Protocol = "http", Labels = ["label"], AllowAnonymous = true }); 489new() { Protocol = "http", Labels = ["label"], AllowAnonymous = false }); 518new() { Protocol = "http", Labels = ["label"], AllowAnonymous = false }, cancellationToken: cts.Token); 541new() { Protocol = "http", Labels = ["label"], AllowAnonymous = false });
4 references to AllowAnonymous
Aspire.Hosting.DevTunnels (3)
DevTunnelCliClient.cs (2)
244await EnsureAccessAsync(tunnelId, portNumber, portOptions.AllowAnonymous, access, logger, cancellationToken).ConfigureAwait(false); 275await EnsureAccessAsync(port.TunnelId, portNumber, portOptions.AllowAnonymous, port.AccessControl ?? [], logger, cancellationToken).ConfigureAwait(false);
DevTunnelOptions.cs (1)
110internal string ToLoggerString() => $"{{ Description={Description}, AllowAnonymous={AllowAnonymous}, Protocol={Protocol}, Labels=[{string.Join(", ", Labels ?? [])}] }}";
Aspire.Hosting.DevTunnels.Tests (1)
DevTunnelResourceBuilderExtensionsTests.cs (1)
98Assert.True(port.Options.AllowAnonymous);