1 instantiation of SupportsDebuggingAnnotation
Aspire.Hosting (1)
SupportsDebuggingAnnotation.cs (1)
60
return 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
"/>,
45
public static bool SupportsDebugging(this IResource resource, IConfiguration configuration, [NotNullWhen(true)] out
SupportsDebuggingAnnotation
? supportsDebuggingAnnotation)
91
public 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>
183
if (!resource.TryGetLastAnnotation<
SupportsDebuggingAnnotation
>(out
var
supportsDebuggingAnnotation))
ApplicationModel\ExecutableLaunchRecipe.cs (3)
94
SupportsDebuggingAnnotation
? debugSupport = null,
116
public
SupportsDebuggingAnnotation
? DebugSupport { get; } = debugSupport;
394
SupportsDebuggingAnnotation
debugSupport)
Dcp\ExecutableLaunchPolicy.cs (3)
28
var supportsDebugging = resource.SupportsDebugging(_configuration, out
var
debugSupport);
37
var
metadataProducer = supportsDebugging &&
83
SupportsDebuggingAnnotation
? debugSupport)
Dcp\ResourceSnapshotBuilder.cs (2)
240
&& resource.TryGetLastAnnotation<
SupportsDebuggingAnnotation
>(out
var
annotation)
ResourceBuilderExtensions.cs (2)
5354
/// a later <see cref="
SupportsDebuggingAnnotation
"/>.
5470
return builder.WithAnnotation(
SupportsDebuggingAnnotation
.Create(
SupportsDebuggingAnnotation.cs (1)
55
internal static
SupportsDebuggingAnnotation
Create<T>(
Aspire.Hosting.Dotnet (5)
DotnetProjectBuildCoordinator.cs (2)
961
foreach (
var
annotation in entry.Registration.Resource.Annotations
962
.OfType<
SupportsDebuggingAnnotation
>()
DotnetProjectHostingExtensions.cs (3)
380
.OfType<
SupportsDebuggingAnnotation
>()
393
if (ctx.Resource.SupportsDebugging(builder.Configuration, out
var
debugAnnotation)
485
|| (resource.SupportsDebugging(builder.Configuration, out
var
debugAnnotation)
Aspire.Hosting.Dotnet.Tests (13)
DotnetProjectBuildCoordinatorTests.cs (8)
65
Assert.Single(api.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>()).LaunchConfigurationType);
68
Assert.Single(worker.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>()).LaunchConfigurationType);
290
Assert.Single(project.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>()).LaunchConfigurationType);
315
Assert.Single(project.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>()).LaunchConfigurationType);
372
Assert.Single(project.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>()).LaunchConfigurationType);
396
Assert.Single(project.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>()).LaunchConfigurationType);
3850
missing.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>(),
3889
missing.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>(),
DotnetProjectResourceTests.cs (5)
486
var
annotation = app.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().SingleOrDefault();
649
Assert.True(app.Resource.TryGetLastAnnotation<
SupportsDebuggingAnnotation
>(out
var
supportsDebugging));
729
Assert.Empty(app.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>());
Aspire.Hosting.Go (4)
GoHostingExtensions.cs (4)
734
var
debuggingAnnotation = builder.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
803
if (resource.TryGetLastAnnotation<
SupportsDebuggingAnnotation
>(out
var
debugSupport))
Aspire.Hosting.Go.Tests (2)
AddGoAppTests.cs (2)
648
var
debugAnnotation = app.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().Last();
Aspire.Hosting.Java.Tests (6)
AddJavaAppTests.cs (6)
1197
var
annotation = app.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().SingleOrDefault();
1209
var
annotation = app.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().SingleOrDefault();
1356
var
annotation = Assert.Single(app.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>());
Aspire.Hosting.JavaScript.Tests (20)
AddBunAppTests.cs (6)
311
var
annotation = bunApp.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().SingleOrDefault();
324
var
annotation = bunApp.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().SingleOrDefault();
337
var
annotation = bunApp.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().SingleOrDefault();
AddDenoAppTests.cs (6)
2531
var
annotation = denoApp.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().SingleOrDefault();
2544
var
annotation = denoApp.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().SingleOrDefault();
2557
var
annotation = denoApp.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().SingleOrDefault();
AddNodeAppTests.cs (8)
442
var
annotation = nodeApp.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().SingleOrDefault();
455
var
annotation = nodeApp.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().SingleOrDefault();
467
var
annotation = viteApp.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().SingleOrDefault();
494
var
annotation = browserDebuggerResource.Annotations.OfType<
SupportsDebuggingAnnotation
>().SingleOrDefault();
Aspire.Hosting.Maui.Tests (4)
MauiPlatformExtensionsTests.cs (4)
167
var
debugSupport = Assert.Single(platform.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>());
463
var
debugSupport = Assert.Single(simulator.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>());
Aspire.Hosting.Python.Tests (4)
AddPythonAppTests.cs (4)
1740
var
debugAnnotation = resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().Last();
1824
var
debugAnnotation = resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().Last();
Aspire.Hosting.Rust.Tests (5)
RustDebugArgsTests.cs (4)
54
var
debugAnnotation = resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().Last();
112
var
debugAnnotation = resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().Last();
RustPublicApiTests.cs (1)
228
Assert.True(app.Resource.TryGetLastAnnotation<
SupportsDebuggingAnnotation
>(out _));
Aspire.Hosting.Tests (89)
Dcp\DcpExecutorTests.cs (62)
5162
var
annotationToRemove = projectBuilder.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
5763
var
defaultAnnotation = projectBuilder.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
5802
var
defaultAnnotation = projectBuilder.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
5843
var
defaultAnnotation = projectBuilder.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
5887
var
defaultAnnotation = projectBuilder.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
5934
var
defaultAnnotation = projectBuilder.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
7003
var
annotationToRemove = projectBuilder.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
7043
var
annotationToRemove = projectBuilder.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
7093
var
annotationToRemove = projectBuilder.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
7153
var
annotationToRemove = projectBuilder.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
7205
var
annotationToRemove = projectBuilder.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
7249
var
annotationToRemove = projectBuilder.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
7332
var
defaultDebugSupport = projectBuilder.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
7466
var
defaultDebugSupport = projectBuilder.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
7594
var
defaultAnnotation = projectBuilder.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
7681
var
defaultAnnotation = projectBuilder.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
7789
var
defaultAnnotation = projectBuilder.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
7856
var
defaultAnnotation = projectBuilder.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
7900
var
annotationToRemove = projectBuilder.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
7966
var
annotationToRemove = projectBuilder.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
7993
var
annotationToRemove = projectBuilder.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
8040
var
annotationToRemove = customProject.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
8090
var
annotationToRemove = customProject.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
8136
var
annotationToRemove = projectBuilder.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
8218
var
annotationToRemove = projectBuilder.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
8722
var
annotationToRemove = projectBuilder.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
8750
var
annotationToRemove = projectBuilder.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
8789
var
annotationToRemove = projectBuilder.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
11182
var
annotationToRemove = projectBuilder.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
11224
var
annotationToRemove = projectBuilder.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
11274
var
annotationToRemove = projectBuilder.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
Dcp\ExecutableLaunchPlanTests.cs (4)
25
resource.Annotations.Add(
SupportsDebuggingAnnotation
.Create(
72
resource.Annotations.Add(
SupportsDebuggingAnnotation
.Create(
101
resource.Annotations.Add(
SupportsDebuggingAnnotation
.Create(
162
resource.Annotations.Add(
SupportsDebuggingAnnotation
.Create(
Dcp\ResourceSnapshotBuilderTests.cs (4)
173
resource.Annotations.Add(
SupportsDebuggingAnnotation
.Create<object>(
227
resource.Annotations.Add(
SupportsDebuggingAnnotation
.Create<object>(
280
resource.Annotations.Add(
SupportsDebuggingAnnotation
.Create<object>(
597
resource.Annotations.Add(
SupportsDebuggingAnnotation
.Create<object>(
DebugSupportExtensionsTests.cs (5)
143
var
debugSupport = Assert.Single(project.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>());
344
Assert.False(executable.Resource.SupportsDebugging(CreateConfiguration(), out
var
annotation));
368
Assert.True(project.Resource.SupportsDebugging(CreateConfiguration(), out
var
annotation));
404
Assert.True(fileApp.Resource.SupportsDebugging(configuration, out
var
annotation));
ExecutableResourceBuilderExtensionTests.cs (8)
113
var
annotation = executable.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().SingleOrDefault();
134
var
annotation = executable.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().SingleOrDefault();
339
var annotations = executable.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().ToList();
360
var
annotation = executable.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().Single();
376
Assert.Empty(executable.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>());
ProjectResourceTests.cs (6)
1032
var
annotation = project.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().SingleOrDefault();
1043
var
annotation = project.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().SingleOrDefault();
1104
var
annotation = app.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().SingleOrDefault();