51 references to WithReference
Aspire.Hosting (3)
ResourceBuilderExtensions.cs (3)
1176EndpointReference endpointReference when connectionName is null && !optional && name is null => builder.WithReference(endpointReference), 1510/// <see cref="WithReference{TDestination}(IResourceBuilder{TDestination}, EndpointReference)"/> 1542/// <see cref="WithReference{TDestination}(IResourceBuilder{TDestination}, EndpointReference)"/>
Aspire.Hosting.Azure.Tests (13)
AzureContainerAppExpressEndpointTests.cs (6)
180web.WithReference(api.GetEndpoint("http")); 216web.WithReference(api.GetEndpoint("http")); 253.WithReference(endpoint) 286.WithReference(api.GetEndpoint("http")) 336first.WithReference(second.GetEndpoint("http")); 337second.WithReference(first.GetEndpoint("http"));
AzureContainerAppExpressTests.cs (1)
70.WithReference(api.GetEndpoint("http"));
AzureResourcePreparerTests.cs (6)
558.WithReference(agent.GetEndpoint("http")); 583.WithReference(agent.GetEndpoint("http")); 638.WithReference(agent1.GetEndpoint("http")) 639.WithReference(agent2.GetEndpoint("http")); 677.WithReference(agent.GetEndpoint("http")); 718.WithReference(agent.GetEndpoint("http"));
Aspire.Hosting.Blazor (1)
BlazorGatewayExtensions.cs (1)
822gateway.WithReference(svcResource.GetEndpoint(endpointName));
Aspire.Hosting.Blazor.Tests (3)
WithBlazorAppTests.cs (3)
420.WithReference(weatherApi.GetEndpoint("public")); 461.WithReference(weatherApi.GetEndpoint("public")) 462.WithReference(weatherApi.GetEndpoint("admin"));
Aspire.Hosting.Docker.Tests (1)
DockerComposePublisherTests.cs (1)
92.WithReference(api.GetEndpoint("http"));
Aspire.Hosting.Kubernetes.Tests (3)
KubernetesPublisherTests.cs (3)
45.WithReference(api.GetEndpoint("http")); 144.WithReference(api.GetEndpoint("http")); 774.WithReference(api.GetEndpoint("http"));
Aspire.Hosting.Radius.Tests (3)
Publishing\ContainerEnvironmentEmissionTests.cs (3)
51.WithReference(backend.GetEndpoint("http")); 74.WithReference(backend.GetEndpoint("http")); 99.WithReference(backend.GetEndpoint("http"))
Aspire.Hosting.Tests (22)
ExpressionResolverTests.cs (1)
305.WithReference(dependency.GetEndpoint("hostEndpoint"));
ResourceDependencyTests.cs (13)
531.WithReference(container.GetEndpoint("http")); // Reverse direction 615.WithReference(b.GetEndpoint("http")); 635.WithReference(b.GetEndpoint("http")); 656.WithReference(d.GetEndpoint("http")); 659.WithReference(c.GetEndpoint("http")); 661.WithReference(b.GetEndpoint("http")); 703.WithReference(b.GetEndpoint("http")) 726.WithReference(b.GetEndpoint("http")); 789.WithReference(b.GetEndpoint("http")); 812.WithReference(b.GetEndpoint("http")); 892.WithReference(b.GetEndpoint("http")); 899.WithReference(e.GetEndpoint("http")); 1008.WithReference(b.GetEndpoint("http"));
WithReferenceTests.cs (8)
26var projectB = builder.AddProject<ProjectB>("b").WithReference(projectA.GetEndpoint(endpointName)); 147.WithReference(projectA.GetEndpoint("mybinding")) 148.WithReference(projectA.GetEndpoint("myconflictingbinding")); 175.WithReference(projectA.GetEndpoint("mybinding")) 176.WithReference(projectA.GetEndpoint("mynonconflictingbinding")); 1159.WithReference(projectA.GetEndpoint("management")); 1189.WithReference(projectA.GetEndpoint("management")); 1292.WithReference(projectA.GetEndpoint("data"));
Aspire.Hosting.Yarp (1)
ConfigurationBuilder\YarpConfigurationBuilder.cs (1)
31_parent.WithReference(endpoint);
BlazorStandalone.AppHost (1)
AppHost.cs (1)
16.WithReference(timeApi.GetEndpoint("api"));