52 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)
184web.WithReference(api.GetEndpoint("http")); 220web.WithReference(api.GetEndpoint("http")); 257.WithReference(endpoint) 290.WithReference(api.GetEndpoint("http")) 340first.WithReference(second.GetEndpoint("http")); 341second.WithReference(first.GetEndpoint("http"));
AzureContainerAppExpressTests.cs (1)
70.WithReference(api.GetEndpoint("http"));
AzureResourcePreparerTests.cs (6)
674.WithReference(agent.GetEndpoint("http")); 699.WithReference(agent.GetEndpoint("http")); 754.WithReference(agent1.GetEndpoint("http")) 755.WithReference(agent2.GetEndpoint("http")); 793.WithReference(agent.GetEndpoint("http")); 834.WithReference(agent.GetEndpoint("http"));
Aspire.Hosting.Blazor (1)
BlazorGatewayExtensions.cs (1)
822gateway.WithReference(svcResource.GetEndpoint(endpointName));
Aspire.Hosting.Blazor.Tests (3)
WithBlazorAppTests.cs (3)
421.WithReference(weatherApi.GetEndpoint("public")); 462.WithReference(weatherApi.GetEndpoint("public")) 463.WithReference(weatherApi.GetEndpoint("admin"));
Aspire.Hosting.Docker.Tests (1)
DockerComposePublisherTests.cs (1)
93.WithReference(api.GetEndpoint("http"));
Aspire.Hosting.Dotnet.Tests (1)
ProjectReferenceCompatibilityTests.cs (1)
63consumer.WithReference(source.GetEndpoint("admin"));
Aspire.Hosting.Kubernetes.Tests (3)
KubernetesPublisherTests.cs (3)
94.WithReference(api.GetEndpoint("http")); 194.WithReference(api.GetEndpoint("http")); 1003.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)
328.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)
294var projectB = AddProject<ProjectB>(builder, "b").WithReference(projectA.GetEndpoint(endpointName)); 415.WithReference(projectA.GetEndpoint("mybinding")) 416.WithReference(projectA.GetEndpoint("myconflictingbinding")); 443.WithReference(projectA.GetEndpoint("mybinding")) 444.WithReference(projectA.GetEndpoint("mynonconflictingbinding")); 1217.WithReference(projectA.GetEndpoint("management")); 1247.WithReference(projectA.GetEndpoint("management")); 1308.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"));