7 writes to AllowAnonymous
Aspire.Hosting.DevTunnels (2)
DevTunnelResourceBuilderExtensions.cs (2)
250AllowAnonymous = allowAnonymous, 366tunnelBuilder.Resource.Options.AllowAnonymous = true;
Aspire.Hosting.DevTunnels.Tests (5)
DevTunnelCliClientTests.cs (5)
128await client.CreateTunnelAsync("mytunnel", new() { AllowAnonymous = true }); 142await CreateClient(cli).CreateTunnelAsync("mytunnel", new() { AllowAnonymous = true }); 176await CreateClient(cli).CreateTunnelAsync("mytunnel", new() { AllowAnonymous = true }); 213await Assert.ThrowsAsync<DistributedApplicationException>(() => CreateClient(cli).CreateTunnelAsync(requested, new() { AllowAnonymous = true })); 250CreateClient(cli).CreateTunnelAsync("mytunnel", new() { Description = "new", AllowAnonymous = true }));
6 references to AllowAnonymous
Aspire.Hosting.DevTunnels (5)
DevTunnelCli.cs (1)
65.AddIfTrue("--allow-anonymous", options.AllowAnonymous)
DevTunnelCliClient.cs (2)
100await EnsureAccessAsync(existing.TunnelId, portNumber: null, options.AllowAnonymous ? true : null, access, logger, cancellationToken).ConfigureAwait(false); 164if (options.AllowAnonymous)
DevTunnelOptions.cs (1)
82internal string ToLoggerString() => $"{{ Description={Description}, AllowAnonymous={AllowAnonymous}, Labels=[{string.Join(", ", Labels ?? [])}], Region={Region}, ExpirationHours={ExpirationHours} }}";
DevTunnelResourceBuilderExtensions.cs (1)
359/// Sets <see cref="DevTunnelOptions.AllowAnonymous"/> to <c>true</c> on <see cref="DevTunnelResource.Options"/> .
Aspire.Hosting.DevTunnels.Tests (1)
DevTunnelResourceBuilderExtensionsTests.cs (1)
51Assert.True(tunnel.Resource.Options.AllowAnonymous);