1 instantiation of SupportsDebuggingAnnotation
Aspire.Hosting (1)
SupportsDebuggingAnnotation.cs (1)
60return new SupportsDebuggingAnnotation(
170 references to SupportsDebuggingAnnotation
Aspire.Hosting (18)
ApplicationModel\DebugSupportExtensions.cs (7)
32/// A resource is only considered debuggable when it carries a <see cref="SupportsDebuggingAnnotation"/>, 45public static bool SupportsDebugging(this IResource resource, IConfiguration configuration, [NotNullWhen(true)] out SupportsDebuggingAnnotation? supportsDebuggingAnnotation) 91public static bool HasLaunchToolArgsOwnedBy(this IResource resource, SupportsDebuggingAnnotation supportsDebuggingAnnotation) 104/// <param name="resource">The resource to inspect. It must carry a <see cref="SupportsDebuggingAnnotation"/>.</param> 148/// <param name="resource">The resource to inspect. It must carry a <see cref="SupportsDebuggingAnnotation"/>.</param> 183if (!resource.TryGetLastAnnotation<SupportsDebuggingAnnotation>(out var supportsDebuggingAnnotation))
ApplicationModel\ExecutableLaunchRecipe.cs (3)
94SupportsDebuggingAnnotation? debugSupport = null, 116public SupportsDebuggingAnnotation? DebugSupport { get; } = debugSupport; 394SupportsDebuggingAnnotation debugSupport)
Dcp\ExecutableLaunchPolicy.cs (3)
28var supportsDebugging = resource.SupportsDebugging(_configuration, out var debugSupport); 37var metadataProducer = supportsDebugging && 83SupportsDebuggingAnnotation? debugSupport)
Dcp\ResourceSnapshotBuilder.cs (2)
240&& resource.TryGetLastAnnotation<SupportsDebuggingAnnotation>(out var annotation)
ResourceBuilderExtensions.cs (2)
5354/// a later <see cref="SupportsDebuggingAnnotation"/>. 5470return builder.WithAnnotation(SupportsDebuggingAnnotation.Create(
SupportsDebuggingAnnotation.cs (1)
55internal static SupportsDebuggingAnnotation Create<T>(
Aspire.Hosting.Dotnet (5)
DotnetProjectBuildCoordinator.cs (2)
961foreach (var annotation in entry.Registration.Resource.Annotations 962.OfType<SupportsDebuggingAnnotation>()
DotnetProjectHostingExtensions.cs (3)
380.OfType<SupportsDebuggingAnnotation>() 393if (ctx.Resource.SupportsDebugging(builder.Configuration, out var debugAnnotation) 485|| (resource.SupportsDebugging(builder.Configuration, out var debugAnnotation)
Aspire.Hosting.Dotnet.Tests (13)
DotnetProjectBuildCoordinatorTests.cs (8)
65Assert.Single(api.Resource.Annotations.OfType<SupportsDebuggingAnnotation>()).LaunchConfigurationType); 68Assert.Single(worker.Resource.Annotations.OfType<SupportsDebuggingAnnotation>()).LaunchConfigurationType); 290Assert.Single(project.Resource.Annotations.OfType<SupportsDebuggingAnnotation>()).LaunchConfigurationType); 315Assert.Single(project.Resource.Annotations.OfType<SupportsDebuggingAnnotation>()).LaunchConfigurationType); 372Assert.Single(project.Resource.Annotations.OfType<SupportsDebuggingAnnotation>()).LaunchConfigurationType); 396Assert.Single(project.Resource.Annotations.OfType<SupportsDebuggingAnnotation>()).LaunchConfigurationType); 3850missing.Resource.Annotations.OfType<SupportsDebuggingAnnotation>(), 3889missing.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)
734var debuggingAnnotation = builder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 803if (resource.TryGetLastAnnotation<SupportsDebuggingAnnotation>(out var debugSupport))
Aspire.Hosting.Go.Tests (2)
AddGoAppTests.cs (2)
648var 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)
2531var annotation = denoApp.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().SingleOrDefault(); 2544var annotation = denoApp.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().SingleOrDefault(); 2557var annotation = denoApp.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().SingleOrDefault();
AddNodeAppTests.cs (8)
442var annotation = nodeApp.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().SingleOrDefault(); 455var annotation = nodeApp.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().SingleOrDefault(); 467var annotation = viteApp.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().SingleOrDefault(); 494var 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 (89)
Dcp\DcpExecutorTests.cs (62)
5162var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 5763var defaultAnnotation = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 5802var defaultAnnotation = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 5843var defaultAnnotation = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 5887var defaultAnnotation = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 5934var defaultAnnotation = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 7003var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 7043var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 7093var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 7153var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 7205var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 7249var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 7332var defaultDebugSupport = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 7466var defaultDebugSupport = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 7594var defaultAnnotation = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 7681var defaultAnnotation = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 7789var defaultAnnotation = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 7856var defaultAnnotation = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 7900var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 7966var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 7993var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 8040var annotationToRemove = customProject.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 8090var annotationToRemove = customProject.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 8136var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 8218var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 8722var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 8750var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 8789var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 11182var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 11224var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 11274var 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 (4)
173resource.Annotations.Add(SupportsDebuggingAnnotation.Create<object>( 227resource.Annotations.Add(SupportsDebuggingAnnotation.Create<object>( 280resource.Annotations.Add(SupportsDebuggingAnnotation.Create<object>( 597resource.Annotations.Add(SupportsDebuggingAnnotation.Create<object>(
DebugSupportExtensionsTests.cs (5)
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));
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(); 1104var annotation = app.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().SingleOrDefault();