12 references to WithEnvironment
Aspire.Hosting.Azure.Tests (2)
AzureEnvironmentResourceTests.cs (2)
116.WithEnvironment("BLOB_CONTAINER_URL", $"{blobs}/container"); 154.WithEnvironment("BLOB_CONTAINER_URL", $"{blobs}/container")
Aspire.Hosting.Tests (6)
WithEnvironmentTests.cs (6)
236.WithEnvironment("URL", $"{endpoint}/foo") 237.WithEnvironment("PORT", $"{endpoint.Property(EndpointProperty.Port)}") 238.WithEnvironment("TARGET_PORT", $"{endpoint.Property(EndpointProperty.TargetPort)}") 239.WithEnvironment("HOST", $"{test.Resource};name=1"); 285.WithEnvironment("URL", $"{endpoint.Property(EndpointProperty.Host)}:{endpoint.Property(EndpointProperty.Port)}"); 320.WithEnvironment("TARGET_PORT", $"{endpoint.Property(EndpointProperty.TargetPort)}");
Aspire.Hosting.Yarp (1)
YarpResourceExtensions.cs (1)
83.WithEnvironment("ASPNETCORE_URLS", $"{resource.GetEndpoint("https").Property(EndpointProperty.Scheme)}://*:{resource.GetEndpoint("https").Property(EndpointProperty.TargetPort)};{resource.GetEndpoint("http").Property(EndpointProperty.Scheme)}://*:{resource.GetEndpoint("http").Property(EndpointProperty.TargetPort)}");
Stress.AppHost (3)
Program.cs (3)
44.WithEnvironment("HOST", $"{serviceBuilder.GetEndpoint("http").Property(EndpointProperty.Host)}") 45.WithEnvironment("PORT", $"{serviceBuilder.GetEndpoint("http").Property(EndpointProperty.Port)}") 46.WithEnvironment("URL", $"{serviceBuilder.GetEndpoint("http").Property(EndpointProperty.Url)}");