6 instantiations of ProjectLaunchDefaultsAnnotation
Aspire.Hosting (2)
ApplicationModel\ProjectResource.cs (1)
30Annotations.Add(new ProjectLaunchDefaultsAnnotation());
ProjectResourceBuilderExtensions.cs (1)
506launchDefaults = new ProjectLaunchDefaultsAnnotation();
Aspire.Hosting.Dotnet (1)
DotnetProjectResource.cs (1)
40Annotations.Add(new ProjectLaunchDefaultsAnnotation());
Aspire.Hosting.Radius.Tests (1)
Publishing\RadiusServiceDiscoveryTests.cs (1)
72resource.Annotations.Add(new ProjectLaunchDefaultsAnnotation { DefaultHttpsEndpoint = https });
Aspire.Hosting.Tests (2)
Dashboard\DashboardEventHandlersTests.cs (1)
211dashboardResource.Annotations.Add(new ProjectLaunchDefaultsAnnotation());
ResourceCommandAnnotationTests.cs (1)
197projectResource.Annotations.Add(new ProjectLaunchDefaultsAnnotation());
26 references to ProjectLaunchDefaultsAnnotation
Aspire.Hosting (14)
ApplicationModel\CommandsConfigurationExtensions.cs (3)
94var restartDescription = resource.HasAnnotationOfType<ProjectLaunchDefaultsAnnotation>() 129if (resource.HasAnnotationOfType<ProjectLaunchDefaultsAnnotation>()) 404resource.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>())
ProjectResourceBuilderExtensions.cs (6)
504if (!builder.Resource.TryGetLastAnnotation<ProjectLaunchDefaultsAnnotation>(out var launchDefaults)) 1091ProjectLaunchDefaultsAnnotation launchDefaults) 1169private static void SetBothPortsEnvVariables<T>(this IResourceBuilder<T> builder, ProjectLaunchDefaultsAnnotation launchDefaults) 1179private static void SetOnePortsEnvVariable<T>(this IResourceBuilder<T> builder, EnvironmentCallbackContext context, ProjectLaunchDefaultsAnnotation launchDefaults, string portEnvVariable, string scheme) 1215private static void SetKestrelUrlOverrideEnvVariables<T>(this IResourceBuilder<T> builder, ProjectLaunchDefaultsAnnotation launchDefaults)
Aspire.Hosting.Dotnet.Tests (2)
DotnetProjectResourceTests.cs (2)
526var launchDefaults = Assert.Single(project.Resource.Annotations.OfType<ProjectLaunchDefaultsAnnotation>());
Aspire.Hosting.Kubernetes (2)
KubernetesResource.cs (2)
250if (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)
22var launchDefaults = Assert.Single(project.Resource.Annotations.OfType<ProjectLaunchDefaultsAnnotation>()); 58var 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>());