44 references to WithReference
Aspire.Hosting (3)
ResourceBuilderExtensions.cs (3)
925EndpointReference endpointReference when connectionName is null && !optional && name is null => builder.WithReference(endpointReference), 1198/// <see cref="WithReference{TDestination}(IResourceBuilder{TDestination}, EndpointReference)"/> 1230/// <see cref="WithReference{TDestination}(IResourceBuilder{TDestination}, EndpointReference)"/>
Aspire.Hosting.Azure.Tests (6)
AzureResourcePreparerTests.cs (6)
559.WithReference(agent.GetEndpoint("http")); 584.WithReference(agent.GetEndpoint("http")); 639.WithReference(agent1.GetEndpoint("http")) 640.WithReference(agent2.GetEndpoint("http")); 678.WithReference(agent.GetEndpoint("http")); 719.WithReference(agent.GetEndpoint("http"));
Aspire.Hosting.Blazor (1)
BlazorGatewayExtensions.cs (1)
670gateway.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)
46.WithReference(api.GetEndpoint("http")); 145.WithReference(api.GetEndpoint("http")); 669.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")); 859.WithReference(projectA.GetEndpoint("management")); 889.WithReference(projectA.GetEndpoint("management")); 992.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"));