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)
1344
var 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)
648
new ContainerResource("frontend").GetEndpoint("https").
BrowserOrigins
);
Aspire.Hosting.DevTunnels.Tests (3)
DevTunnelMonitorTests.cs (3)
257
var origin = endpoint.
BrowserOrigins
;
290
await endpoint.
BrowserOrigins
.GetValueAsync());
303
await endpoint.
BrowserOrigins
.GetValueAsync());
Aspire.Hosting.Docker.Tests (10)
DockerComposePublisherTests.cs (10)
41
consumer.WithEnvironment("ORIGIN", web.GetEndpoint("http").
BrowserOrigins
)
47
.WithEnvironment("ORIGIN", web.GetEndpoint("http").
BrowserOrigins
);
49
consumer.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
);
132
builder.AddContainer("consumer", "image").WithEnvironment("ORIGIN", web.GetEndpoint("http").
BrowserOrigins
);
154
.WithEnvironment("ORIGINS", web.GetEndpoint("http").
BrowserOrigins
);
183
var origin = frontend.GetEndpoint("HTTP").
BrowserOrigins
;
186
.WithEnvironment("ORIGINS", frontend.GetEndpoint("http").
BrowserOrigins
)
Aspire.Hosting.Kubernetes.Tests (12)
KubernetesPublisherTests.cs (12)
59
var origin = web.GetEndpoint("HTTP", KnownNetworkIdentifiers.LocalhostNetwork).
BrowserOrigins
;
133
.WithEnvironment("ORIGIN", web.GetEndpoint("http").
BrowserOrigins
);
159
var 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
);
296
var 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
);
376
var 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)
5215
Assert.Equal($"https://frontend.example,{frontend.GetEndpoint("http").Url}", await frontend.GetEndpoint("http").
BrowserOrigins
.GetValueAsync(ct));
5216
Assert.Equal($"https://backend.example,{backend.GetEndpoint("http").Url}", await backend.GetEndpoint("http").
BrowserOrigins
.GetValueAsync(ct));
EndpointReferenceTests.cs (11)
508
var origins = endpoint.
BrowserOrigins
;
533
Assert.Equal("https://public.example,https://alias.example,https://localhost:8443", await endpoint.
BrowserOrigins
.GetValueAsync());
548
Assert.Equal(expected, await endpoint.
BrowserOrigins
.GetValueAsync());
561
Assert.Equal("https://frontend.example", await endpoint.
BrowserOrigins
.GetValueAsync());
565
Assert.Equal("https://frontend.example,https://replacement.example", await endpoint.
BrowserOrigins
.GetValueAsync());
578
Assert.Equal("http://frontend.example", await resource.GetEndpoint("HTTP").
BrowserOrigins
.GetValueAsync());
579
Assert.Equal("https://separate.example", await resource.GetEndpoint("https").
BrowserOrigins
.GetValueAsync());
591
Assert.Equal("https://public.example", await host.
BrowserOrigins
.GetValueAsync());
592
Assert.Equal("https://public.example", await container.
BrowserOrigins
.GetValueAsync());
630
Assert.Equal(expected, await endpoint.
BrowserOrigins
.GetValueAsync());
675
var origin = endpoint.
BrowserOrigins
;
ManifestExpressionTests.cs (7)
62
consumer.WithEnvironment("SECOND", second.GetEndpoint("b-c").
BrowserOrigins
);
63
consumer.WithEnvironment("FIRST", first.GetEndpoint("c").
BrowserOrigins
);
67
consumer.WithEnvironment("FIRST", first.GetEndpoint("c").
BrowserOrigins
);
68
consumer.WithEnvironment("SECOND", second.GetEndpoint("b-c").
BrowserOrigins
);
89
var origin = frontend.GetEndpoint("http").
BrowserOrigins
;
437
var origin = frontend.GetEndpoint("http").
BrowserOrigins
;
456
.WithEnvironment("ORIGIN", frontend.GetEndpoint("http").
BrowserOrigins
);
Orchestrator\ApplicationOrchestratorTests.cs (20)
37
await requested.GetEndpoint("http").
BrowserOrigins
.GetValueAsync(context.CancellationToken);
54
await first.GetEndpoint("http").
BrowserOrigins
.GetValueAsync(cts.Token));
59
Assert.Equal("http://localhost:8080", await second.GetEndpoint("http").
BrowserOrigins
.GetValueAsync(cts.Token));
72
observed = await first.GetEndpoint("http").
BrowserOrigins
.GetValueAsync(context.CancellationToken);
88
Assert.Equal("http://localhost:8080", await second.GetEndpoint("http").
BrowserOrigins
.GetValueAsync());
105
var read = second.GetEndpoint("http").
BrowserOrigins
.GetValueAsync(context.CancellationToken).AsTask();
152
var pending = other.GetEndpoint("http").
BrowserOrigins
.GetValueAsync(cts.Token).AsTask();
180
observed = await endpoint.
BrowserOrigins
.GetValueAsync(ct);
189
Assert.Equal(origins, await endpoint.
BrowserOrigins
.GetValueAsync(default));
215
await endpoint.
BrowserOrigins
.GetValueAsync(default));
240
var browserEndpoint = frontend.GetEndpoint("http").
BrowserOrigins
;
303
var browserEndpoint = frontend.GetEndpoint("http").
BrowserOrigins
;
362
Assert.Equal("https://admin.example,https://frontend.example,http://localhost:8080", await frontend.GetEndpoint("http").
BrowserOrigins
.GetValueAsync());
386
var pendingOrigin = frontend.GetEndpoint("http").
BrowserOrigins
.GetValueAsync();
425
var origins = frontend.GetEndpoint("http").
BrowserOrigins
;
435
var browserEndpoint = frontend.GetEndpoint("http").
BrowserOrigins
;
473
Assert.Equal("http://localhost:8080", await frontend.GetEndpoint("http").
BrowserOrigins
.GetValueAsync().DefaultTimeout());
474
Assert.Equal("https://frontend.example,https://localhost:8443", await frontend.GetEndpoint("https").
BrowserOrigins
.GetValueAsync().DefaultTimeout());
494
Assert.Equal("http://localhost:8080", await frontend.GetEndpoint("http").
BrowserOrigins
.GetValueAsync());
514
var browserEndpoint = frontend.GetEndpoint("http").
BrowserOrigins
;
Schema\SchemaTests.cs (1)
67
.WithEnvironment("ORIGINS", frontend.GetEndpoint("http").
BrowserOrigins
)