7 instantiations of RequiredCommandAnnotation
Aspire.Hosting (2)
RequiredCommandResourceExtensions.cs (2)
37
builder.WithAnnotation(new
RequiredCommandAnnotation
(command)
72
builder.WithAnnotation(new
RequiredCommandAnnotation
(command)
Aspire.Hosting.DevTunnels (1)
DevTunnelResourceBuilderExtensions.cs (1)
130
var cliAnnotation = new
RequiredCommandAnnotation
(tunnelResource.Command)
Aspire.Hosting.Tests (4)
RequiredCommandAnnotationTests.cs (4)
18
var annotation = new
RequiredCommandAnnotation
("test-command");
26
Assert.Throws<ArgumentNullException>(() => new
RequiredCommandAnnotation
(null!));
32
var annotation = new
RequiredCommandAnnotation
("test-command")
46
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)
130
var
cliAnnotation = new RequiredCommandAnnotation(tunnelResource.Command)
Aspire.Hosting.Tests (10)
RequiredCommandAnnotationTests.cs (10)
18
var
annotation = new RequiredCommandAnnotation("test-command");
32
var
annotation = new RequiredCommandAnnotation("test-command")
46
var
annotation = new RequiredCommandAnnotation("test-command")
63
var
annotation = resourceBuilder.Resource.Annotations.OfType<
RequiredCommandAnnotation
>().Single();
77
var
annotation = resourceBuilder.Resource.Annotations.OfType<
RequiredCommandAnnotation
>().Single();
93
var
annotation = resourceBuilder.Resource.Annotations.OfType<
RequiredCommandAnnotation
>().Single();
109
var annotations = resourceBuilder.Resource.Annotations.OfType<
RequiredCommandAnnotation
>().ToList();