1 instantiation of SupportsDebuggingAnnotation
Aspire.Hosting (1)
SupportsDebuggingAnnotation.cs (1)
55return new SupportsDebuggingAnnotation(
146 references to SupportsDebuggingAnnotation
Aspire.Hosting (18)
ApplicationModel\DebugSupportExtensions.cs (7)
33/// 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) 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)
27var supportsDebugging = resource.SupportsDebugging(_configuration, out var debugSupport); 36var metadataProducer = supportsDebugging && 81SupportsDebuggingAnnotation? debugSupport)
Dcp\ResourceSnapshotBuilder.cs (2)
230&& resource.TryGetLastAnnotation<SupportsDebuggingAnnotation>(out var annotation)
ResourceBuilderExtensions.cs (2)
4852/// a later <see cref="SupportsDebuggingAnnotation"/>. 4968return builder.WithAnnotation(SupportsDebuggingAnnotation.Create(
SupportsDebuggingAnnotation.cs (1)
50internal static SupportsDebuggingAnnotation Create<T>(
Aspire.Hosting.Dotnet (2)
DotnetProjectHostingExtensions.cs (2)
136if (ctx.Resource.SupportsDebugging(builder.Configuration, out var debugAnnotation) 190|| (resource.SupportsDebugging(builder.Configuration, out var debugAnnotation)
Aspire.Hosting.Dotnet.Tests (5)
DotnetProjectResourceTests.cs (5)
467var annotation = app.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().SingleOrDefault(); 544Assert.True(app.Resource.TryGetLastAnnotation<SupportsDebuggingAnnotation>(out var supportsDebugging)); 620Assert.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 (14)
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();
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)
164var debugSupport = Assert.Single(platform.Resource.Annotations.OfType<SupportsDebuggingAnnotation>()); 459var 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 (84)
Dcp\DcpExecutorTests.cs (62)
4321var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 4843var defaultAnnotation = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 4882var defaultAnnotation = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 4923var defaultAnnotation = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 4967var defaultAnnotation = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 5014var defaultAnnotation = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 6083var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 6123var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 6173var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 6233var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 6285var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 6329var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 6412var defaultDebugSupport = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 6546var defaultDebugSupport = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 6674var defaultAnnotation = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 6761var defaultAnnotation = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 6869var defaultAnnotation = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 6936var defaultAnnotation = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 6980var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 7046var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 7073var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 7120var annotationToRemove = customProject.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 7170var annotationToRemove = customProject.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 7216var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 7298var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 7744var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 7772var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 7811var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 9693var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 9735var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault(); 9785var annotationToRemove = projectBuilder.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().FirstOrDefault();
Dcp\ExecutableLaunchPlanTests.cs (3)
25resource.Annotations.Add(SupportsDebuggingAnnotation.Create( 72resource.Annotations.Add(SupportsDebuggingAnnotation.Create( 131resource.Annotations.Add(SupportsDebuggingAnnotation.Create(
Dcp\ResourceSnapshotBuilderTests.cs (1)
94resource.Annotations.Add(SupportsDebuggingAnnotation.Create<object>(
DebugSupportExtensionsTests.cs (4)
133var debugSupport = Assert.Single(project.Resource.Annotations.OfType<SupportsDebuggingAnnotation>()); 332Assert.False(executable.Resource.SupportsDebugging(CreateConfiguration(), out var annotation)); 354Assert.True(project.Resource.SupportsDebugging(CreateConfiguration(), out var annotation));
ExecutableResourceBuilderExtensionTests.cs (8)
98var annotation = executable.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().SingleOrDefault(); 119var annotation = executable.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().SingleOrDefault(); 324var annotations = executable.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().ToList(); 345var annotation = executable.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().Single(); 361Assert.Empty(executable.Resource.Annotations.OfType<SupportsDebuggingAnnotation>());
ProjectResourceTests.cs (6)
972var annotation = project.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().SingleOrDefault(); 983var annotation = project.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().SingleOrDefault(); 994var annotation = app.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().SingleOrDefault();