1 instantiation of SupportsDebuggingAnnotation
Aspire.Hosting (1)
SupportsDebuggingAnnotation.cs (1)
73
return new
SupportsDebuggingAnnotation
(
218 references to SupportsDebuggingAnnotation
Aspire.Hosting (29)
ApplicationModel\DebugSupportExtensions.cs (16)
78
public static bool SupportsDebugging(this IResource resource, IConfiguration configuration, [NotNullWhen(true)] out
SupportsDebuggingAnnotation
? supportsDebuggingAnnotation)
96
resource.TryGetLastAnnotation<
SupportsDebuggingAnnotation
>(out
var
declaredAnnotation);
120
var
supportedDeclaredAnnotation =
169
var
effectiveAnnotation =
SupportsDebuggingAnnotation
.Create(
204
public 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>
299
if (!resource.TryGetLastAnnotation<
SupportsDebuggingAnnotation
>(out
var
supportsDebuggingAnnotation))
312
SupportsDebuggingAnnotation
declaredAnnotation,
328
SupportsDebuggingAnnotation
? declaredAnnotation,
408
SupportsDebuggingAnnotation
? DeclaredAnnotation,
409
SupportsDebuggingAnnotation
? SupportedDeclaredAnnotation,
410
SupportsDebuggingAnnotation
? EffectiveAnnotation,
ApplicationModel\ExecutableLaunchRecipe.cs (3)
98
SupportsDebuggingAnnotation
? debugSupport = null,
122
public
SupportsDebuggingAnnotation
? DebugSupport { get; } = debugSupport;
405
SupportsDebuggingAnnotation
debugSupport)
Dcp\ExecutableLaunchPolicy.cs (4)
20
var
effectiveDebugSupport = debugSupportDecision.EffectiveAnnotation;
29
var
metadataProducer =
53
var
declaredProducer = debugSupportDecision.SupportedDeclaredAnnotation ??
66
var
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
"/>.
5469
return builder.WithAnnotation(
SupportsDebuggingAnnotation
.Create(
SupportsDebuggingAnnotation.cs (1)
68
internal static
SupportsDebuggingAnnotation
Create<T>(
Aspire.Hosting.Dotnet (5)
DotnetProjectBuildCoordinator.cs (2)
1015
foreach (
var
annotation in entry.Registration.Resource.Annotations
1016
.OfType<
SupportsDebuggingAnnotation
>()
DotnetProjectHostingExtensions.cs (3)
398
.OfType<
SupportsDebuggingAnnotation
>()
411
if (ctx.Resource.SupportsDebugging(builder.Configuration, out
var
debugAnnotation)
504
|| (resource.SupportsDebugging(builder.Configuration, out
var
debugAnnotation)
Aspire.Hosting.Dotnet.Tests (14)
DotnetProjectBuildCoordinatorTests.cs (9)
67
Assert.Single(api.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>()).LaunchConfigurationType);
70
Assert.Single(worker.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>()).LaunchConfigurationType);
287
Assert.Single(project.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>()).LaunchConfigurationType);
405
Assert.Single(project.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>()).LaunchConfigurationType);
492
Assert.Single(project.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>()).LaunchConfigurationType);
552
Assert.Single(project.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>()).LaunchConfigurationType);
578
Assert.Single(project.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>()).LaunchConfigurationType);
4032
missing.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>(),
4071
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)
722
var
debuggingAnnotation = builder.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
791
if (resource.TryGetLastAnnotation<
SupportsDebuggingAnnotation
>(out
var
debugSupport))
Aspire.Hosting.Go.Tests (2)
AddGoAppTests.cs (2)
707
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)
2528
var
annotation = denoApp.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().SingleOrDefault();
2541
var
annotation = denoApp.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().SingleOrDefault();
2554
var
annotation = denoApp.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().SingleOrDefault();
AddNodeAppTests.cs (8)
441
var
annotation = nodeApp.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().SingleOrDefault();
454
var
annotation = nodeApp.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().SingleOrDefault();
466
var
annotation = viteApp.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().SingleOrDefault();
493
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 (125)
Dcp\DcpExecutorTests.cs (79)
5678
var
annotationToRemove = projectBuilder.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
6279
var
defaultAnnotation = projectBuilder.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
6318
var
defaultAnnotation = projectBuilder.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
6359
var
defaultAnnotation = projectBuilder.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
6403
var
defaultAnnotation = projectBuilder.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
6450
var
defaultAnnotation = projectBuilder.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
7519
var
annotationToRemove = projectBuilder.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
7559
var
annotationToRemove = projectBuilder.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
7582
Assert.True(projectBuilder.Resource.SupportsDebugging(configuration, out
var
effectiveIdeLaunchAnnotation));
7612
var
annotationToRemove = projectBuilder.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
7637
Assert.False(projectBuilder.Resource.SupportsDebugging(configuration, out
var
declaredIdeLaunchAnnotation));
7638
Assert.Equal("azure-functions", Assert.IsType<
SupportsDebuggingAnnotation
>(declaredIdeLaunchAnnotation).LaunchConfigurationType);
7715
var
annotationToRemove = projectBuilder.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
7755
var
annotationToRemove = projectBuilder.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
7848
Assert.True(functions.Resource.SupportsDebugging(configuration, out
var
effectiveIdeLaunchAnnotation));
7881
var
annotationToRemove = projectBuilder.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
7941
var
annotationToRemove = projectBuilder.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
7993
var
annotationToRemove = projectBuilder.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
8037
var
annotationToRemove = projectBuilder.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
8120
var
defaultDebugSupport = projectBuilder.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
8254
var
defaultDebugSupport = projectBuilder.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
8382
var
defaultAnnotation = projectBuilder.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
8469
var
defaultAnnotation = projectBuilder.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
8577
var
defaultAnnotation = projectBuilder.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
8644
var
defaultAnnotation = projectBuilder.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
8688
var
annotationToRemove = projectBuilder.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
8754
var
annotationToRemove = projectBuilder.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
8781
var
annotationToRemove = projectBuilder.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
8828
var
annotationToRemove = customProject.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
8878
var
annotationToRemove = customProject.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
8924
var
annotationToRemove = projectBuilder.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
9006
var
annotationToRemove = projectBuilder.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
9049
var
annotationToRemove = projectBuilder.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().Single();
9064
Assert.False(projectBuilder.Resource.SupportsDebugging(configuration, out
var
returnedAnnotation));
9350
var
defaultDebugSupport = projectBuilder.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().Single();
9380
Assert.False(projectBuilder.Resource.SupportsDebugging(configuration, out
var
declaredIdeLaunchAnnotation));
9381
Assert.Equal("custom", Assert.IsType<
SupportsDebuggingAnnotation
>(declaredIdeLaunchAnnotation).LaunchConfigurationType);
9630
var
annotationToRemove = projectBuilder.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
9658
var
annotationToRemove = projectBuilder.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
9697
var
annotationToRemove = projectBuilder.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
12500
var
annotationToRemove = projectBuilder.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
12542
var
annotationToRemove = projectBuilder.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
12592
var
annotationToRemove = projectBuilder.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().FirstOrDefault();
Dcp\ExecutableLaunchPlanTests.cs (6)
25
resource.Annotations.Add(
SupportsDebuggingAnnotation
.Create(
72
resource.Annotations.Add(
SupportsDebuggingAnnotation
.Create(
101
resource.Annotations.Add(
SupportsDebuggingAnnotation
.Create(
162
resource.Annotations.Add(
SupportsDebuggingAnnotation
.Create(
194
resource.Annotations.Add(
SupportsDebuggingAnnotation
.Create(
215
Assert.True(resource.SupportsDebugging(inspectionConfiguration, out
var
ideLaunchAnnotation));
Dcp\ResourceSnapshotBuilderTests.cs (5)
179
project.Annotations.Add(
SupportsDebuggingAnnotation
.Create<object>(
236
resource.Annotations.Add(
SupportsDebuggingAnnotation
.Create<object>(
290
resource.Annotations.Add(
SupportsDebuggingAnnotation
.Create<object>(
343
resource.Annotations.Add(
SupportsDebuggingAnnotation
.Create<object>(
660
resource.Annotations.Add(
SupportsDebuggingAnnotation
.Create<object>(
DebugSupportExtensionsTests.cs (21)
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));
432
var
defaultAnnotation = project.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().Single();
437
var
declaredAnnotation = project.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().Single();
441
Assert.True(project.Resource.SupportsDebugging(configuration, out
var
effectiveAnnotation));
444
Assert.Same(declaredAnnotation, Assert.Single(project.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>()));
454
var
defaultAnnotation = project.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().Single();
459
var
declaredAnnotation = project.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().Single();
467
Assert.False(project.Resource.SupportsDebugging(configuration, out
var
returnedAnnotation));
478
var
defaultAnnotation = project.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().Single();
483
var
declaredAnnotation = project.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().Single();
491
Assert.False(project.Resource.SupportsDebugging(configuration, out
var
returnedAnnotation));
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();
1107
var
annotation = app.Resource.Annotations.OfType<
SupportsDebuggingAnnotation
>().SingleOrDefault();