78 references to BrowserOrigins
Aspire.Hosting (4)
ApplicationModel\EndpointReference.cs (1)
77/// Returns the first origin in <see cref="BrowserOrigins"/>, following finalized URL display ordering.
ResourceBuilderExtensions.cs (3)
2256/// Final origins associated with the resource's own endpoints are exposed through <see cref="EndpointReference.BrowserOrigins"/>. 2321/// Final origins associated with the resource's own endpoints are exposed through <see cref="EndpointReference.BrowserOrigins"/>. 2489/// and all origins through <see cref="EndpointReference.BrowserOrigins"/>.
Aspire.Hosting.Azure.EntraId.Tests (1)
EntraIdProvisioningTests.cs (1)
1344var pendingOrigin = web.GetEndpoint("https").BrowserOrigins.GetValueAsync(cts.Token).AsTask();
Aspire.Hosting.Azure.Tests (2)
AzureEnvironmentResourceTests.cs (2)
74.WithEnvironment("ORIGINS", frontend.GetEndpoint("http").BrowserOrigins) 110.WithEnvironment("ORIGINS", frontend.GetEndpoint("http").BrowserOrigins)
Aspire.Hosting.CodeGeneration.TypeScript.Tests (1)
AtsTypeScriptCodeGeneratorTests.cs (1)
648new ContainerResource("frontend").GetEndpoint("https").BrowserOrigins);
Aspire.Hosting.DevTunnels.Tests (3)
DevTunnelMonitorTests.cs (3)
257var origin = endpoint.BrowserOrigins; 290await endpoint.BrowserOrigins.GetValueAsync()); 303await endpoint.BrowserOrigins.GetValueAsync());
Aspire.Hosting.Docker.Tests (10)
DockerComposePublisherTests.cs (10)
41consumer.WithEnvironment("ORIGIN", web.GetEndpoint("http").BrowserOrigins) 47.WithEnvironment("ORIGIN", web.GetEndpoint("http").BrowserOrigins); 49consumer.WithEnvironment("REPEATED", web.GetEndpoint("http").BrowserOrigins) 80.WithEnvironment("FIRST", first.GetEndpoint("c").BrowserOrigins) 81.WithEnvironment("SECOND", second.GetEndpoint("b-c").BrowserOrigins) 82.WithEnvironment("REPEATED", first.GetEndpoint("c").BrowserOrigins); 132builder.AddContainer("consumer", "image").WithEnvironment("ORIGIN", web.GetEndpoint("http").BrowserOrigins); 154.WithEnvironment("ORIGINS", web.GetEndpoint("http").BrowserOrigins); 183var origin = frontend.GetEndpoint("HTTP").BrowserOrigins; 186.WithEnvironment("ORIGINS", frontend.GetEndpoint("http").BrowserOrigins)
Aspire.Hosting.Kubernetes.Tests (12)
KubernetesPublisherTests.cs (12)
59var origin = web.GetEndpoint("HTTP", KnownNetworkIdentifiers.LocalhostNetwork).BrowserOrigins; 133.WithEnvironment("ORIGIN", web.GetEndpoint("http").BrowserOrigins); 159var consumer = builder.AddContainer("consumer", "image").WithEnvironment("ORIGIN", web.GetEndpoint("http").BrowserOrigins); 200.WithEnvironment("FIRST", first.GetEndpoint("c").BrowserOrigins) 201.WithEnvironment("SECOND", second.GetEndpoint("b-c").BrowserOrigins) 202.WithEnvironment("REPEATED", first.GetEndpoint("c").BrowserOrigins); 250.WithEnvironment("ORIGINS", endpoint.BrowserOrigins); 296var consumer = builder.AddContainer("consumer", "image").WithEnvironment("ORIGINS", web.GetEndpoint("http").BrowserOrigins); 318.WithEnvironment("ORIGINS", web.GetEndpoint("http").BrowserOrigins); 354.WithEnvironment("ORIGINS", web.GetEndpoint("http").BrowserOrigins); 376var origin = frontend.GetEndpoint("http").BrowserOrigins; 379.WithEnvironment("ORIGINS", frontend.GetEndpoint("http").BrowserOrigins)
Aspire.Hosting.Radius.Tests (4)
Publishing\RadiusDeployParametersTests.cs (4)
69.WithEnvironment("FIRST", first.GetEndpoint("c").BrowserOrigins) 70.WithEnvironment("SECOND", second.GetEndpoint("b-c").BrowserOrigins) 71.WithEnvironment("REPEATED", first.GetEndpoint("c").BrowserOrigins); 101.WithEnvironment("ORIGINS", web.GetEndpoint("http").BrowserOrigins)
Aspire.Hosting.Tests (41)
Dcp\DcpExecutorTests.cs (2)
5215Assert.Equal($"https://frontend.example,{frontend.GetEndpoint("http").Url}", await frontend.GetEndpoint("http").BrowserOrigins.GetValueAsync(ct)); 5216Assert.Equal($"https://backend.example,{backend.GetEndpoint("http").Url}", await backend.GetEndpoint("http").BrowserOrigins.GetValueAsync(ct));
EndpointReferenceTests.cs (11)
508var origins = endpoint.BrowserOrigins; 533Assert.Equal("https://public.example,https://alias.example,https://localhost:8443", await endpoint.BrowserOrigins.GetValueAsync()); 548Assert.Equal(expected, await endpoint.BrowserOrigins.GetValueAsync()); 561Assert.Equal("https://frontend.example", await endpoint.BrowserOrigins.GetValueAsync()); 565Assert.Equal("https://frontend.example,https://replacement.example", await endpoint.BrowserOrigins.GetValueAsync()); 578Assert.Equal("http://frontend.example", await resource.GetEndpoint("HTTP").BrowserOrigins.GetValueAsync()); 579Assert.Equal("https://separate.example", await resource.GetEndpoint("https").BrowserOrigins.GetValueAsync()); 591Assert.Equal("https://public.example", await host.BrowserOrigins.GetValueAsync()); 592Assert.Equal("https://public.example", await container.BrowserOrigins.GetValueAsync()); 630Assert.Equal(expected, await endpoint.BrowserOrigins.GetValueAsync()); 675var origin = endpoint.BrowserOrigins;
ManifestExpressionTests.cs (7)
62consumer.WithEnvironment("SECOND", second.GetEndpoint("b-c").BrowserOrigins); 63consumer.WithEnvironment("FIRST", first.GetEndpoint("c").BrowserOrigins); 67consumer.WithEnvironment("FIRST", first.GetEndpoint("c").BrowserOrigins); 68consumer.WithEnvironment("SECOND", second.GetEndpoint("b-c").BrowserOrigins); 89var origin = frontend.GetEndpoint("http").BrowserOrigins; 437var origin = frontend.GetEndpoint("http").BrowserOrigins; 456.WithEnvironment("ORIGIN", frontend.GetEndpoint("http").BrowserOrigins);
Orchestrator\ApplicationOrchestratorTests.cs (20)
37await requested.GetEndpoint("http").BrowserOrigins.GetValueAsync(context.CancellationToken); 54await first.GetEndpoint("http").BrowserOrigins.GetValueAsync(cts.Token)); 59Assert.Equal("http://localhost:8080", await second.GetEndpoint("http").BrowserOrigins.GetValueAsync(cts.Token)); 72observed = await first.GetEndpoint("http").BrowserOrigins.GetValueAsync(context.CancellationToken); 88Assert.Equal("http://localhost:8080", await second.GetEndpoint("http").BrowserOrigins.GetValueAsync()); 105var read = second.GetEndpoint("http").BrowserOrigins.GetValueAsync(context.CancellationToken).AsTask(); 152var pending = other.GetEndpoint("http").BrowserOrigins.GetValueAsync(cts.Token).AsTask(); 180observed = await endpoint.BrowserOrigins.GetValueAsync(ct); 189Assert.Equal(origins, await endpoint.BrowserOrigins.GetValueAsync(default)); 215await endpoint.BrowserOrigins.GetValueAsync(default)); 240var browserEndpoint = frontend.GetEndpoint("http").BrowserOrigins; 303var browserEndpoint = frontend.GetEndpoint("http").BrowserOrigins; 362Assert.Equal("https://admin.example,https://frontend.example,http://localhost:8080", await frontend.GetEndpoint("http").BrowserOrigins.GetValueAsync()); 386var pendingOrigin = frontend.GetEndpoint("http").BrowserOrigins.GetValueAsync(); 425var origins = frontend.GetEndpoint("http").BrowserOrigins; 435var browserEndpoint = frontend.GetEndpoint("http").BrowserOrigins; 473Assert.Equal("http://localhost:8080", await frontend.GetEndpoint("http").BrowserOrigins.GetValueAsync().DefaultTimeout()); 474Assert.Equal("https://frontend.example,https://localhost:8443", await frontend.GetEndpoint("https").BrowserOrigins.GetValueAsync().DefaultTimeout()); 494Assert.Equal("http://localhost:8080", await frontend.GetEndpoint("http").BrowserOrigins.GetValueAsync()); 514var browserEndpoint = frontend.GetEndpoint("http").BrowserOrigins;
Schema\SchemaTests.cs (1)
67.WithEnvironment("ORIGINS", frontend.GetEndpoint("http").BrowserOrigins)