7 instantiations of RequiredCommandAnnotation
Aspire.Hosting (2)
RequiredCommandResourceExtensions.cs (2)
38
builder.WithAnnotation(new
RequiredCommandAnnotation
(command)
75
builder.WithAnnotation(new
RequiredCommandAnnotation
(command)
Aspire.Hosting.DevTunnels (1)
DevTunnelResourceBuilderExtensions.cs (1)
132
var cliAnnotation = new
RequiredCommandAnnotation
(tunnelResource.Command)
Aspire.Hosting.Tests (4)
RequiredCommandAnnotationTests.cs (4)
19
var annotation = new
RequiredCommandAnnotation
("test-command");
27
Assert.Throws<ArgumentNullException>(() => new
RequiredCommandAnnotation
(null!));
33
var annotation = new
RequiredCommandAnnotation
("test-command")
47
var annotation = new
RequiredCommandAnnotation
("test-command")
18 references to RequiredCommandAnnotation
Aspire.Hosting (5)
ApplicationModel\IRequiredCommandValidator.cs (1)
30
Task<RequiredCommandValidationResult> ValidateAsync(IResource resource,
RequiredCommandAnnotation
annotation, CancellationToken cancellationToken);
ApplicationModel\RequiredCommandValidator.cs (1)
52
RequiredCommandAnnotation
annotation,
Lifecycle\RequiredCommandValidationLifecycleHook.cs (3)
15
/// This subscriber processes <see cref="
RequiredCommandAnnotation
"/> on resources and delegates
36
var requiredCommands = resource.Annotations.OfType<
RequiredCommandAnnotation
>().ToList();
43
foreach (
var
annotation in requiredCommands)
Aspire.Hosting.Azure.Tests (2)
AzureFunctionsTests.cs (2)
769
var
annotation = funcApp.Resource.Annotations.OfType<
RequiredCommandAnnotation
>().SingleOrDefault();
Aspire.Hosting.DevTunnels (1)
DevTunnelResourceBuilderExtensions.cs (1)
132
var
cliAnnotation = new RequiredCommandAnnotation(tunnelResource.Command)
Aspire.Hosting.Tests (10)
RequiredCommandAnnotationTests.cs (10)
19
var
annotation = new RequiredCommandAnnotation("test-command");
33
var
annotation = new RequiredCommandAnnotation("test-command")
47
var
annotation = new RequiredCommandAnnotation("test-command")
64
var
annotation = resourceBuilder.Resource.Annotations.OfType<
RequiredCommandAnnotation
>().Single();
78
var
annotation = resourceBuilder.Resource.Annotations.OfType<
RequiredCommandAnnotation
>().Single();
94
var
annotation = resourceBuilder.Resource.Annotations.OfType<
RequiredCommandAnnotation
>().Single();
110
var annotations = resourceBuilder.Resource.Annotations.OfType<
RequiredCommandAnnotation
>().ToList();