7 references to WithEndpointsInEnvironment
Aspire.Hosting.Dotnet (1)
DotnetProjectHostingExtensions.cs (1)
271
return builder.
WithEndpointsInEnvironment
(endpoint => includedEndpointNames.Contains(endpoint.Name));
Aspire.Hosting.Dotnet.Tests (6)
DotnetProjectFacadeTests.cs (6)
23
Assert.Same(resource, resource.
WithEndpointsInEnvironment
(endpoint => endpoint.Name == "http"));
94
Assert.Equal("builder", Assert.Throws<ArgumentNullException>(() => missingBuilder.
WithEndpointsInEnvironment
(_ => true)).ParamName);
100
Assert.Equal("filter", Assert.Throws<ArgumentNullException>(() => resource.
WithEndpointsInEnvironment
(null!)).ParamName);
119
Assert.Same(resource, resource.
WithEndpointsInEnvironment
(endpoint => endpoint.Name != "admin"));
121
resource.
WithEndpointsInEnvironment
(endpoint => endpoint.Name != "metrics");
174
IResourceBuilder<DotnetProjectResource> modern = disabled.WithReplicas(2).
WithEndpointsInEnvironment
(_ => true);