7 writes to AllowAnonymous
Aspire.Hosting.DevTunnels (2)
DevTunnelResourceBuilderExtensions.cs (2)
250
AllowAnonymous
= allowAnonymous,
366
tunnelBuilder.Resource.Options.
AllowAnonymous
= true;
Aspire.Hosting.DevTunnels.Tests (5)
DevTunnelCliClientTests.cs (5)
128
await client.CreateTunnelAsync("mytunnel", new() {
AllowAnonymous
= true });
142
await CreateClient(cli).CreateTunnelAsync("mytunnel", new() {
AllowAnonymous
= true });
176
await CreateClient(cli).CreateTunnelAsync("mytunnel", new() {
AllowAnonymous
= true });
213
await Assert.ThrowsAsync<DistributedApplicationException>(() => CreateClient(cli).CreateTunnelAsync(requested, new() {
AllowAnonymous
= true }));
250
CreateClient(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)
100
await EnsureAccessAsync(existing.TunnelId, portNumber: null, options.
AllowAnonymous
? true : null, access, logger, cancellationToken).ConfigureAwait(false);
164
if (options.
AllowAnonymous
)
DevTunnelOptions.cs (1)
82
internal 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)
51
Assert.True(tunnel.Resource.Options.
AllowAnonymous
);