7 instantiations of ProjectLaunchDefaultsAnnotation
Aspire.Hosting (2)
ApplicationModel\ProjectResource.cs (1)
29Annotations.Add(new ProjectLaunchDefaultsAnnotation());
ProjectResourceBuilderExtensions.cs (1)
542launchDefaults = new ProjectLaunchDefaultsAnnotation();
Aspire.Hosting.Dotnet (1)
DotnetProjectResource.cs (1)
44Annotations.Add(new ProjectLaunchDefaultsAnnotation());
Aspire.Hosting.Radius.Tests (1)
Publishing\RadiusServiceDiscoveryTests.cs (1)
72resource.Annotations.Add(new ProjectLaunchDefaultsAnnotation { DefaultHttpsEndpoint = https });
Aspire.Hosting.Tests (3)
Dashboard\DashboardEventHandlersTests.cs (1)
212dashboardResource.Annotations.Add(new ProjectLaunchDefaultsAnnotation());
Dcp\ResourceSnapshotBuilderTests.cs (1)
226resource.Annotations.Add(new ProjectLaunchDefaultsAnnotation { BuildConfiguration = configuration });
ResourceCommandAnnotationTests.cs (1)
197projectResource.Annotations.Add(new ProjectLaunchDefaultsAnnotation());
30 references to ProjectLaunchDefaultsAnnotation
Aspire.Hosting (16)
ApplicationModel\CommandsConfigurationExtensions.cs (3)
94var restartDescription = resource.HasAnnotationOfType<ProjectLaunchDefaultsAnnotation>() 129if (resource.HasAnnotationOfType<ProjectLaunchDefaultsAnnotation>()) 449resource.HasAnnotationOfType<ProjectLaunchDefaultsAnnotation>())
ApplicationModel\ProjectLaunchConfigurationFactory.cs (2)
28resource.TryGetLastAnnotation<ProjectLaunchDefaultsAnnotation>(out var launchDefaults);
ApplicationModel\ProjectResourceExtensions.cs (2)
110foreach (var launchDefaults in projectResource.Annotations.OfType<ProjectLaunchDefaultsAnnotation>())
Dashboard\DashboardEventHandlers.cs (1)
192if (!dashboardResource.HasAnnotationOfType<ProjectLaunchDefaultsAnnotation>())
Dcp\ResourceSnapshotBuilder.cs (2)
280appModelResource.TryGetLastAnnotation<ProjectLaunchDefaultsAnnotation>(out var launchDefaults);
ProjectResourceBuilderExtensions.cs (6)
540if (!builder.Resource.TryGetLastAnnotation<ProjectLaunchDefaultsAnnotation>(out var launchDefaults)) 1141ProjectLaunchDefaultsAnnotation launchDefaults) 1228private static void SetBothPortsEnvVariables<T>(this IResourceBuilder<T> builder, ProjectLaunchDefaultsAnnotation launchDefaults) 1238private static void SetOnePortsEnvVariable<T>(this IResourceBuilder<T> builder, EnvironmentCallbackContext context, ProjectLaunchDefaultsAnnotation launchDefaults, string portEnvVariable, string scheme) 1274private static void SetKestrelUrlOverrideEnvVariables<T>(this IResourceBuilder<T> builder, ProjectLaunchDefaultsAnnotation launchDefaults)
Aspire.Hosting.Dotnet.Tests (2)
DotnetProjectResourceTests.cs (2)
502var launchDefaults = Assert.Single(project.Resource.Annotations.OfType<ProjectLaunchDefaultsAnnotation>());
Aspire.Hosting.Kubernetes (2)
KubernetesResource.cs (2)
247if (resource.TryGetLastAnnotation<ProjectLaunchDefaultsAnnotation>(out var launchDefaults) &&
Aspire.Hosting.Radius (2)
Publishing\RadiusServiceDiscovery.cs (2)
120if (resource.TryGetLastAnnotation<ProjectLaunchDefaultsAnnotation>(out var launchDefaults) &&
Aspire.Hosting.Tests (8)
ProjectRebuilderResourceTests.cs (6)
24var launchDefaults = Assert.Single(project.Resource.Annotations.OfType<ProjectLaunchDefaultsAnnotation>()); 62var launchDefaults = Assert.Single(project.Resource.Annotations.OfType<ProjectLaunchDefaultsAnnotation>()); 93var launchDefaults = Assert.Single(project.Resource.Annotations.OfType<ProjectLaunchDefaultsAnnotation>());
ProjectResourceBuilderExtensionTests.cs (2)
25var attribute = Assert.Single(typeof(ProjectLaunchDefaultsAnnotation).GetCustomAttributes<ExperimentalAttribute>()); 107Assert.Single(project.Resource.Annotations.OfType<ProjectLaunchDefaultsAnnotation>());