4 instantiations of ProjectLaunchDefaultsAnnotation
Aspire.Hosting (2)
ApplicationModel\ProjectResource.cs (1)
40Annotations.Add(new ProjectLaunchDefaultsAnnotation());
ProjectResourceBuilderExtensions.cs (1)
492launchDefaults = 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 });
15 references to ProjectLaunchDefaultsAnnotation
Aspire.Hosting (9)
ApplicationModel\CommandsConfigurationExtensions.cs (2)
93var restartDescription = resource.HasAnnotationOfType<ProjectLaunchDefaultsAnnotation>() 127if (resource.HasAnnotationOfType<ProjectLaunchDefaultsAnnotation>())
ApplicationModel\ProjectResourceExtensions.cs (2)
75foreach (var launchDefaults in projectResource.Annotations.OfType<ProjectLaunchDefaultsAnnotation>())
ProjectResourceBuilderExtensions.cs (5)
490if (!builder.Resource.TryGetLastAnnotation<ProjectLaunchDefaultsAnnotation>(out var launchDefaults)) 1128private static void SetBothPortsEnvVariables<T>(this IResourceBuilder<T> builder, ProjectLaunchDefaultsAnnotation launchDefaults) 1138private static void SetOnePortsEnvVariable<T>(this IResourceBuilder<T> builder, EnvironmentCallbackContext context, ProjectLaunchDefaultsAnnotation launchDefaults, string portEnvVariable, string scheme) 1174private static void SetKestrelUrlOverrideEnvVariables<T>(this IResourceBuilder<T> builder, ProjectLaunchDefaultsAnnotation launchDefaults)
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 (2)
ProjectResourceBuilderExtensionTests.cs (2)
24var attribute = Assert.Single(typeof(ProjectLaunchDefaultsAnnotation).GetCustomAttributes<ExperimentalAttribute>()); 106Assert.Single(project.Resource.Annotations.OfType<ProjectLaunchDefaultsAnnotation>());