1 instantiation of SupportsDebuggingAnnotation
Aspire.Hosting (1)
SupportsDebuggingAnnotation.cs (1)
73return new SupportsDebuggingAnnotation(
218 references to SupportsDebuggingAnnotation
Aspire.Hosting (29)
ApplicationModel\DebugSupportExtensions.cs (16)
78public static bool SupportsDebugging(this IResource resource, IConfiguration configuration, [NotNullWhen(true)] out SupportsDebuggingAnnotation? supportsDebuggingAnnotation) 96resource.TryGetLastAnnotation<SupportsDebuggingAnnotation>(out var declaredAnnotation); 120var supportedDeclaredAnnotation = 169var effectiveAnnotation = SupportsDebuggingAnnotation.Create( 204public static bool HasLaunchToolArgsOwnedBy(this IResource resource, SupportsDebuggingAnnotation supportsDebuggingAnnotation) 220/// <param name="resource">The resource to inspect. It must carry a <see cref="SupportsDebuggingAnnotation"/>.</param> 264/// <param name="resource">The resource to inspect. It must carry a <see cref="SupportsDebuggingAnnotation"/>.</param> 299if (!resource.TryGetLastAnnotation<SupportsDebuggingAnnotation>(out var supportsDebuggingAnnotation)) 312SupportsDebuggingAnnotation declaredAnnotation, 328SupportsDebuggingAnnotation? declaredAnnotation, 408SupportsDebuggingAnnotation? DeclaredAnnotation, 409SupportsDebuggingAnnotation? SupportedDeclaredAnnotation, 410SupportsDebuggingAnnotation? EffectiveAnnotation,
ApplicationModel\ExecutableLaunchRecipe.cs (3)
98SupportsDebuggingAnnotation? debugSupport = null, 122public SupportsDebuggingAnnotation? DebugSupport { get; } = debugSupport; 405SupportsDebuggingAnnotation debugSupport)
Dcp\ExecutableLaunchPolicy.cs (4)
20var effectiveDebugSupport = debugSupportDecision.EffectiveAnnotation; 29var metadataProducer = 53var declaredProducer = debugSupportDecision.SupportedDeclaredAnnotation ?? 66var declaredProducer = debugSupportDecision.SupportedDeclaredAnnotation ??
Dcp\ResourceSnapshotBuilder.cs (3)
177&& sourceResource.HasAnnotationOfType<SupportsDebuggingAnnotation>()) 248&& resource.TryGetLastAnnotation<SupportsDebuggingAnnotation>(out var annotation)
ResourceBuilderExtensions.cs (2)
5353/// a later <see cref="SupportsDebuggingAnnotation"/>. 5469return builder.WithAnnotation(SupportsDebuggingAnnotation.Create(
SupportsDebuggingAnnotation.cs (1)
68internal static SupportsDebuggingAnnotation Create<T>(
Aspire.Hosting.Dotnet (5)
DotnetProjectBuildCoordinator.cs (2)
1015foreach (var annotation in entry.Registration.Resource.Annotations 1016.OfType<SupportsDebuggingAnnotation>()
DotnetProjectHostingExtensions.cs (3)
398.OfType<SupportsDebuggingAnnotation>() 411if (ctx.Resource.SupportsDebugging(builder.Configuration, out var debugAnnotation) 504|| (resource.SupportsDebugging(builder.Configuration, out var debugAnnotation)
Aspire.Hosting.Dotnet.Tests (14)
DotnetProjectBuildCoordinatorTests.cs (9)
67Assert.Single(api.Resource.Annotations.OfType<SupportsDebuggingAnnotation>()).LaunchConfigurationType); 70Assert.Single(worker.Resource.Annotations.OfType<SupportsDebuggingAnnotation>()).LaunchConfigurationType); 287Assert.Single(project.Resource.Annotations.OfType<SupportsDebuggingAnnotation>()).LaunchConfigurationType); 405Assert.Single(project.Resource.Annotations.OfType<SupportsDebuggingAnnotation>()).LaunchConfigurationType); 492Assert.Single(project.Resource.Annotations.OfType<SupportsDebuggingAnnotation>()).LaunchConfigurationType); 552Assert.Single(project.Resource.Annotations.OfType<SupportsDebuggingAnnotation>()).LaunchConfigurationType); 578Assert.Single(project.Resource.Annotations.OfType<SupportsDebuggingAnnotation>()).LaunchConfigurationType); 4032missing.Resource.Annotations.OfType<SupportsDebuggingAnnotation>(), 4071missing.Resource.Annotations.OfType<SupportsDebuggingAnnotation>(),
DotnetProjectResourceTests.cs (5)
486var annotation = app.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().SingleOrDefault(); 649Assert.True(app.Resource.TryGetLastAnnotation<SupportsDebuggingAnnotation>(out var supportsDebugging)); 729Assert.Empty(app.Resource.Annotations.OfType<SupportsDebuggingAnnotation>());
Aspire.Hosting.Go (4)
GoHostingExtensions.cs (4)
722var debuggingAnnotation = builder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 791if (resource.TryGetLastAnnotation<SupportsDebuggingAnnotation>(out var debugSupport))
Aspire.Hosting.Go.Tests (2)
AddGoAppTests.cs (2)
707var debugAnnotation = app.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().Last();
Aspire.Hosting.Java.Tests (6)
AddJavaAppTests.cs (6)
1197var annotation = app.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().SingleOrDefault(); 1209var annotation = app.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().SingleOrDefault(); 1356var annotation = Assert.Single(app.Resource.Annotations.OfType<SupportsDebuggingAnnotation>());
Aspire.Hosting.JavaScript.Tests (20)
AddBunAppTests.cs (6)
311var annotation = bunApp.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().SingleOrDefault(); 324var annotation = bunApp.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().SingleOrDefault(); 337var annotation = bunApp.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().SingleOrDefault();
AddDenoAppTests.cs (6)
2528var annotation = denoApp.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().SingleOrDefault(); 2541var annotation = denoApp.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().SingleOrDefault(); 2554var annotation = denoApp.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().SingleOrDefault();
AddNodeAppTests.cs (8)
441var annotation = nodeApp.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().SingleOrDefault(); 454var annotation = nodeApp.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().SingleOrDefault(); 466var annotation = viteApp.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().SingleOrDefault(); 493var annotation = browserDebuggerResource.Annotations.OfType<SupportsDebuggingAnnotation>().SingleOrDefault();
Aspire.Hosting.Maui.Tests (4)
MauiPlatformExtensionsTests.cs (4)
167var debugSupport = Assert.Single(platform.Resource.Annotations.OfType<SupportsDebuggingAnnotation>()); 463var debugSupport = Assert.Single(simulator.Resource.Annotations.OfType<SupportsDebuggingAnnotation>());
Aspire.Hosting.Python.Tests (4)
AddPythonAppTests.cs (4)
1740var debugAnnotation = resource.Annotations.OfType<SupportsDebuggingAnnotation>().Last(); 1824var debugAnnotation = resource.Annotations.OfType<SupportsDebuggingAnnotation>().Last();
Aspire.Hosting.Rust.Tests (5)
RustDebugArgsTests.cs (4)
54var debugAnnotation = resource.Annotations.OfType<SupportsDebuggingAnnotation>().Last(); 112var debugAnnotation = resource.Annotations.OfType<SupportsDebuggingAnnotation>().Last();
RustPublicApiTests.cs (1)
228Assert.True(app.Resource.TryGetLastAnnotation<SupportsDebuggingAnnotation>(out _));
Aspire.Hosting.Tests (125)
Dcp\DcpExecutorTests.cs (79)
5678var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 6279var defaultAnnotation = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 6318var defaultAnnotation = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 6359var defaultAnnotation = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 6403var defaultAnnotation = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 6450var defaultAnnotation = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 7519var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 7559var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 7582Assert.True(projectBuilder.Resource.SupportsDebugging(configuration, out var effectiveIdeLaunchAnnotation)); 7612var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 7637Assert.False(projectBuilder.Resource.SupportsDebugging(configuration, out var declaredIdeLaunchAnnotation)); 7638Assert.Equal("azure-functions", Assert.IsType<SupportsDebuggingAnnotation>(declaredIdeLaunchAnnotation).LaunchConfigurationType); 7715var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 7755var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 7848Assert.True(functions.Resource.SupportsDebugging(configuration, out var effectiveIdeLaunchAnnotation)); 7881var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 7941var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 7993var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 8037var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 8120var defaultDebugSupport = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 8254var defaultDebugSupport = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 8382var defaultAnnotation = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 8469var defaultAnnotation = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 8577var defaultAnnotation = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 8644var defaultAnnotation = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 8688var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 8754var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 8781var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 8828var annotationToRemove = customProject.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 8878var annotationToRemove = customProject.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 8924var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 9006var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 9049var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().Single(); 9064Assert.False(projectBuilder.Resource.SupportsDebugging(configuration, out var returnedAnnotation)); 9350var defaultDebugSupport = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().Single(); 9380Assert.False(projectBuilder.Resource.SupportsDebugging(configuration, out var declaredIdeLaunchAnnotation)); 9381Assert.Equal("custom", Assert.IsType<SupportsDebuggingAnnotation>(declaredIdeLaunchAnnotation).LaunchConfigurationType); 9630var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 9658var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 9697var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 12500var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 12542var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 12592var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault();
Dcp\ExecutableLaunchPlanTests.cs (6)
25resource.Annotations.Add(SupportsDebuggingAnnotation.Create( 72resource.Annotations.Add(SupportsDebuggingAnnotation.Create( 101resource.Annotations.Add(SupportsDebuggingAnnotation.Create( 162resource.Annotations.Add(SupportsDebuggingAnnotation.Create( 194resource.Annotations.Add(SupportsDebuggingAnnotation.Create( 215Assert.True(resource.SupportsDebugging(inspectionConfiguration, out var ideLaunchAnnotation));
Dcp\ResourceSnapshotBuilderTests.cs (5)
179project.Annotations.Add(SupportsDebuggingAnnotation.Create<object>( 236resource.Annotations.Add(SupportsDebuggingAnnotation.Create<object>( 290resource.Annotations.Add(SupportsDebuggingAnnotation.Create<object>( 343resource.Annotations.Add(SupportsDebuggingAnnotation.Create<object>( 660resource.Annotations.Add(SupportsDebuggingAnnotation.Create<object>(
DebugSupportExtensionsTests.cs (21)
143var debugSupport = Assert.Single(project.Resource.Annotations.OfType<SupportsDebuggingAnnotation>()); 344Assert.False(executable.Resource.SupportsDebugging(CreateConfiguration(), out var annotation)); 368Assert.True(project.Resource.SupportsDebugging(CreateConfiguration(), out var annotation)); 404Assert.True(fileApp.Resource.SupportsDebugging(configuration, out var annotation)); 432var defaultAnnotation = project.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().Single(); 437var declaredAnnotation = project.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().Single(); 441Assert.True(project.Resource.SupportsDebugging(configuration, out var effectiveAnnotation)); 444Assert.Same(declaredAnnotation, Assert.Single(project.Resource.Annotations.OfType<SupportsDebuggingAnnotation>())); 454var defaultAnnotation = project.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().Single(); 459var declaredAnnotation = project.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().Single(); 467Assert.False(project.Resource.SupportsDebugging(configuration, out var returnedAnnotation)); 478var defaultAnnotation = project.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().Single(); 483var declaredAnnotation = project.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().Single(); 491Assert.False(project.Resource.SupportsDebugging(configuration, out var returnedAnnotation));
ExecutableResourceBuilderExtensionTests.cs (8)
113var annotation = executable.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().SingleOrDefault(); 134var annotation = executable.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().SingleOrDefault(); 339var annotations = executable.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().ToList(); 360var annotation = executable.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().Single(); 376Assert.Empty(executable.Resource.Annotations.OfType<SupportsDebuggingAnnotation>());
ProjectResourceTests.cs (6)
1032var annotation = project.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().SingleOrDefault(); 1043var annotation = project.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().SingleOrDefault(); 1107var annotation = app.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().SingleOrDefault();