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