4 instantiations of ProjectLaunchDefaultsAnnotation
Aspire.Hosting (2)
ApplicationModel\ProjectResource.cs (1)
40Annotations.Add(new ProjectLaunchDefaultsAnnotation());
ProjectResourceBuilderExtensions.cs (1)
493launchDefaults = new ProjectLaunchDefaultsAnnotation();
Aspire.Hosting.Dotnet (1)
DotnetProjectResource.cs (1)
63Annotations.Add(new ProjectLaunchDefaultsAnnotation());
Aspire.Hosting.Radius.Tests (1)
Publishing\RadiusServiceDiscoveryTests.cs (1)
72resource.Annotations.Add(new ProjectLaunchDefaultsAnnotation { DefaultHttpsEndpoint = https });
24 references to ProjectLaunchDefaultsAnnotation
Aspire.Hosting (12)
ApplicationModel\CommandsConfigurationExtensions.cs (2)
93var restartDescription = resource.HasAnnotationOfType<ProjectLaunchDefaultsAnnotation>() 127if (resource.HasAnnotationOfType<ProjectLaunchDefaultsAnnotation>())
ApplicationModel\ProjectLaunchConfigurationFactory.cs (2)
28resource.TryGetLastAnnotation<ProjectLaunchDefaultsAnnotation>(out var launchDefaults);
ApplicationModel\ProjectResourceExtensions.cs (2)
75foreach (var launchDefaults in projectResource.Annotations.OfType<ProjectLaunchDefaultsAnnotation>())
ProjectResourceBuilderExtensions.cs (6)
491if (!builder.Resource.TryGetLastAnnotation<ProjectLaunchDefaultsAnnotation>(out var launchDefaults)) 1065ProjectLaunchDefaultsAnnotation launchDefaults) 1143private static void SetBothPortsEnvVariables<T>(this IResourceBuilder<T> builder, ProjectLaunchDefaultsAnnotation launchDefaults) 1153private static void SetOnePortsEnvVariable<T>(this IResourceBuilder<T> builder, EnvironmentCallbackContext context, ProjectLaunchDefaultsAnnotation launchDefaults, string portEnvVariable, string scheme) 1189private static void SetKestrelUrlOverrideEnvVariables<T>(this IResourceBuilder<T> builder, ProjectLaunchDefaultsAnnotation launchDefaults)
Aspire.Hosting.Dotnet.Tests (2)
DotnetProjectResourceTests.cs (2)
478var launchDefaults = Assert.Single(project.Resource.Annotations.OfType<ProjectLaunchDefaultsAnnotation>());
Aspire.Hosting.Kubernetes (2)
KubernetesResource.cs (2)
249if (resource.TryGetLastAnnotation<ProjectLaunchDefaultsAnnotation>(out var launchDefaults) &&
Aspire.Hosting.Radius (2)
Publishing\RadiusServiceDiscovery.cs (2)
120if (resource.TryGetLastAnnotation<ProjectLaunchDefaultsAnnotation>(out var launchDefaults) &&
Aspire.Hosting.Tests (6)
ProjectRebuilderResourceTests.cs (4)
20var launchDefaults = Assert.Single(project.Resource.Annotations.OfType<ProjectLaunchDefaultsAnnotation>()); 41var launchDefaults = Assert.Single(project.Resource.Annotations.OfType<ProjectLaunchDefaultsAnnotation>());
ProjectResourceBuilderExtensionTests.cs (2)
24var attribute = Assert.Single(typeof(ProjectLaunchDefaultsAnnotation).GetCustomAttributes<ExperimentalAttribute>()); 106Assert.Single(project.Resource.Annotations.OfType<ProjectLaunchDefaultsAnnotation>());