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