1 instantiation of SupportsDebuggingAnnotation
Aspire.Hosting (1)
SupportsDebuggingAnnotation.cs (1)
55return new SupportsDebuggingAnnotation(
165 references to SupportsDebuggingAnnotation
Aspire.Hosting (18)
ApplicationModel\DebugSupportExtensions.cs (7)
32/// A resource is only considered debuggable when it carries a <see cref="SupportsDebuggingAnnotation"/>, 44public static bool SupportsDebugging(this IResource resource, IConfiguration configuration, [NotNullWhen(true)] out SupportsDebuggingAnnotation? supportsDebuggingAnnotation) 88public static bool HasLaunchToolArgsOwnedBy(this IResource resource, SupportsDebuggingAnnotation supportsDebuggingAnnotation) 101/// <param name="resource">The resource to inspect. It must carry a <see cref="SupportsDebuggingAnnotation"/>.</param> 145/// <param name="resource">The resource to inspect. It must carry a <see cref="SupportsDebuggingAnnotation"/>.</param> 180if (!resource.TryGetLastAnnotation<SupportsDebuggingAnnotation>(out var supportsDebuggingAnnotation))
ApplicationModel\ExecutableLaunchRecipe.cs (3)
94SupportsDebuggingAnnotation? debugSupport = null, 116public SupportsDebuggingAnnotation? DebugSupport { get; } = debugSupport; 391SupportsDebuggingAnnotation debugSupport)
Dcp\ExecutableLaunchPolicy.cs (3)
28var supportsDebugging = resource.SupportsDebugging(_configuration, out var debugSupport); 37var metadataProducer = supportsDebugging && 83SupportsDebuggingAnnotation? debugSupport)
Dcp\ResourceSnapshotBuilder.cs (2)
230&& resource.TryGetLastAnnotation<SupportsDebuggingAnnotation>(out var annotation)
ResourceBuilderExtensions.cs (2)
5019/// a later <see cref="SupportsDebuggingAnnotation"/>. 5135return builder.WithAnnotation(SupportsDebuggingAnnotation.Create(
SupportsDebuggingAnnotation.cs (1)
50internal static SupportsDebuggingAnnotation Create<T>(
Aspire.Hosting.Dotnet (5)
DotnetProjectBuildCoordinator.cs (2)
718foreach (var annotation in entry.Registration.Resource.Annotations 719.OfType<SupportsDebuggingAnnotation>()
DotnetProjectHostingExtensions.cs (3)
324.OfType<SupportsDebuggingAnnotation>() 337if (ctx.Resource.SupportsDebugging(builder.Configuration, out var debugAnnotation) 428|| (resource.SupportsDebugging(builder.Configuration, out var debugAnnotation)
Aspire.Hosting.Dotnet.Tests (13)
DotnetProjectBuildCoordinatorTests.cs (8)
58Assert.Single(api.Resource.Annotations.OfType<SupportsDebuggingAnnotation>()).LaunchConfigurationType); 61Assert.Single(worker.Resource.Annotations.OfType<SupportsDebuggingAnnotation>()).LaunchConfigurationType); 283Assert.Single(project.Resource.Annotations.OfType<SupportsDebuggingAnnotation>()).LaunchConfigurationType); 308Assert.Single(project.Resource.Annotations.OfType<SupportsDebuggingAnnotation>()).LaunchConfigurationType); 330Assert.Single(project.Resource.Annotations.OfType<SupportsDebuggingAnnotation>()).LaunchConfigurationType); 354Assert.Single(project.Resource.Annotations.OfType<SupportsDebuggingAnnotation>()).LaunchConfigurationType); 3005missing.Resource.Annotations.OfType<SupportsDebuggingAnnotation>(), 3042missing.Resource.Annotations.OfType<SupportsDebuggingAnnotation>(),
DotnetProjectResourceTests.cs (5)
512var annotation = app.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().SingleOrDefault(); 642Assert.True(app.Resource.TryGetLastAnnotation<SupportsDebuggingAnnotation>(out var supportsDebugging)); 722Assert.Empty(app.Resource.Annotations.OfType<SupportsDebuggingAnnotation>());
Aspire.Hosting.Go (2)
GoHostingExtensions.cs (2)
705var debuggingAnnotation = builder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault();
Aspire.Hosting.Go.Tests (2)
AddGoAppTests.cs (2)
582var 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)
313var annotation = bunApp.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().SingleOrDefault(); 326var annotation = bunApp.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().SingleOrDefault(); 339var annotation = bunApp.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().SingleOrDefault();
AddDenoAppTests.cs (6)
2532var annotation = denoApp.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().SingleOrDefault(); 2545var annotation = denoApp.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().SingleOrDefault(); 2558var annotation = denoApp.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().SingleOrDefault();
AddNodeAppTests.cs (8)
444var annotation = nodeApp.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().SingleOrDefault(); 457var annotation = nodeApp.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().SingleOrDefault(); 469var annotation = viteApp.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().SingleOrDefault(); 496var annotation = browserDebuggerResource.Annotations.OfType<SupportsDebuggingAnnotation>().SingleOrDefault();
Aspire.Hosting.Maui.Tests (4)
MauiPlatformExtensionsTests.cs (4)
168var debugSupport = Assert.Single(platform.Resource.Annotations.OfType<SupportsDebuggingAnnotation>()); 464var debugSupport = Assert.Single(simulator.Resource.Annotations.OfType<SupportsDebuggingAnnotation>());
Aspire.Hosting.Python.Tests (4)
AddPythonAppTests.cs (4)
1422var debugAnnotation = resource.Annotations.OfType<SupportsDebuggingAnnotation>().Last(); 1506var 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 (86)
Dcp\DcpExecutorTests.cs (62)
4807var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 5329var defaultAnnotation = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 5368var defaultAnnotation = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 5409var defaultAnnotation = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 5453var defaultAnnotation = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 5500var defaultAnnotation = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 6569var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 6609var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 6659var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 6719var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 6771var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 6815var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 6898var defaultDebugSupport = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 7032var defaultDebugSupport = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 7160var defaultAnnotation = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 7247var defaultAnnotation = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 7355var defaultAnnotation = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 7422var defaultAnnotation = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 7466var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 7532var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 7559var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 7606var annotationToRemove = customProject.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 7656var annotationToRemove = customProject.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 7702var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 7784var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 8288var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 8316var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 8355var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 10717var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 10759var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 10809var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault();
Dcp\ExecutableLaunchPlanTests.cs (4)
25resource.Annotations.Add(SupportsDebuggingAnnotation.Create( 72resource.Annotations.Add(SupportsDebuggingAnnotation.Create( 101resource.Annotations.Add(SupportsDebuggingAnnotation.Create( 162resource.Annotations.Add(SupportsDebuggingAnnotation.Create(
Dcp\ResourceSnapshotBuilderTests.cs (1)
94resource.Annotations.Add(SupportsDebuggingAnnotation.Create<object>(
DebugSupportExtensionsTests.cs (5)
138var debugSupport = Assert.Single(project.Resource.Annotations.OfType<SupportsDebuggingAnnotation>()); 337Assert.False(executable.Resource.SupportsDebugging(CreateConfiguration(), out var annotation)); 359Assert.True(project.Resource.SupportsDebugging(CreateConfiguration(), out var annotation)); 391Assert.True(fileApp.Resource.SupportsDebugging(configuration, out var annotation));
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)
1004var annotation = project.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().SingleOrDefault(); 1015var annotation = project.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().SingleOrDefault(); 1026var annotation = app.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().SingleOrDefault();