17 references to WithReference
Aspire.Hosting.Docker.Tests (1)
DockerComposePublisherTests.cs (1)
89
.
WithReference
(api.GetEndpoint("http"));
Aspire.Hosting.Kubernetes.Tests (2)
KubernetesPublisherTests.cs (2)
40
.
WithReference
(api.GetEndpoint("http"));
137
.
WithReference
(api.GetEndpoint("http"));
Aspire.Hosting.Tests (13)
ExpressionResolverTests.cs (1)
264
.
WithReference
(dependency.GetEndpoint("hostEndpoint"));
ResourceDependencyTests.cs (7)
389
.
WithReference
(container.GetEndpoint("http")); // Reverse direction
473
.
WithReference
(b.GetEndpoint("http"));
493
.
WithReference
(b.GetEndpoint("http"));
514
.
WithReference
(d.GetEndpoint("http"));
517
.
WithReference
(c.GetEndpoint("http"));
519
.
WithReference
(b.GetEndpoint("http"));
559
.
WithReference
(b.GetEndpoint("http"));
WithReferenceTests.cs (5)
25
var projectB = builder.AddProject<ProjectB>("b").
WithReference
(projectA.GetEndpoint(endpointName));
146
.
WithReference
(projectA.GetEndpoint("mybinding"))
147
.
WithReference
(projectA.GetEndpoint("myconflictingbinding"));
174
.
WithReference
(projectA.GetEndpoint("mybinding"))
175
.
WithReference
(projectA.GetEndpoint("mynonconflictingbinding"));
Aspire.Hosting.Yarp (1)
ConfigurationBuilder\YarpConfigurationBuilder.cs (1)
31
_parent.
WithReference
(endpoint);