3 implementations of WithAnnotation
Aspire.Hosting (1)
DistributedApplicationResourceBuilder.cs (1)
14public IResourceBuilder<T> WithAnnotation<TAnnotation>(TAnnotation annotation, ResourceAnnotationMutationBehavior behavior = ResourceAnnotationMutationBehavior.Append) where TAnnotation : IResourceAnnotation
Aspire.Hosting.Azure.Sql (1)
AzureSqlServerResource.cs (1)
731public IResourceBuilder<T> WithAnnotation<TAnnotation>(TAnnotation annotation, ResourceAnnotationMutationBehavior behavior = ResourceAnnotationMutationBehavior.Append) where TAnnotation : IResourceAnnotation
Aspire.Hosting.RemoteHost.Tests (1)
CapabilityDispatcherTests.cs (1)
2650public IResourceBuilder<T> WithAnnotation<TAnnotation>(TAnnotation annotation, ResourceAnnotationMutationBehavior behavior = ResourceAnnotationMutationBehavior.Append) where TAnnotation : IResourceAnnotation
498 references to WithAnnotation
Aspire.Hosting (108)
ApplicationModel\IResourceBuilder.cs (1)
29IResourceBuilder<T> WithAnnotation<TAnnotation>(ResourceAnnotationMutationBehavior behavior = ResourceAnnotationMutationBehavior.Append) where TAnnotation : IResourceAnnotation, new() => WithAnnotation(new TAnnotation(), behavior);
ApplicationModel\ResourceExtensions.cs (2)
552return builder.WithAnnotation(new ContainerBuildOptionsCallbackAnnotation(callback), ResourceAnnotationMutationBehavior.Append); 572return builder.WithAnnotation(new ContainerBuildOptionsCallbackAnnotation(callback), ResourceAnnotationMutationBehavior.Append);
ContainerRegistryResourceBuilderExtensions.cs (1)
194return builder.WithAnnotation(new ContainerRegistryReferenceAnnotation(registry.Resource));
ContainerResourceBuilderExtensions.cs (23)
54builder.WithAnnotation(new PipelineStepAnnotation((factoryContext) => 99return builder.WithAnnotation(new PipelineConfigurationAnnotation(context => 328return builder.WithAnnotation(annotation); 557return builder.WithAnnotation(annotation); 591.WithAnnotation(new PersistenceAnnotation 600.WithAnnotation(new ContainerLifetimeAnnotation { Lifetime = lifetime }, ResourceAnnotationMutationBehavior.Replace); 616return builder.WithAnnotation(new ContainerImagePullPolicyAnnotation { ImagePullPolicy = pullPolicy }, ResourceAnnotationMutationBehavior.Replace); 724return builder.WithAnnotation(annotation, ResourceAnnotationMutationBehavior.Replace) 725.WithAnnotation(defaultContainerBuildOptions) 729return builder.WithAnnotation(annotation, ResourceAnnotationMutationBehavior.Replace) 730.WithAnnotation(defaultContainerBuildOptions) 874return builder.WithAnnotation(annotation, ResourceAnnotationMutationBehavior.Replace) 875.WithAnnotation(defaultContainerBuildOptions, ResourceAnnotationMutationBehavior.Append) 879return builder.WithAnnotation(annotation, ResourceAnnotationMutationBehavior.Replace) 880.WithAnnotation(defaultContainerBuildOptions, ResourceAnnotationMutationBehavior.Append) 1110return builder.WithAnnotation(new ContainerNameAnnotation { Name = name }, ResourceAnnotationMutationBehavior.Replace); 1311return builder.WithAnnotation(new ContainerCertificatePathsAnnotation 1403return builder.WithAnnotation(annotation, ResourceAnnotationMutationBehavior.Append); 1475return builder.WithAnnotation(annotation, ResourceAnnotationMutationBehavior.Append); 1518return builder.WithAnnotation(annotation, ResourceAnnotationMutationBehavior.Append); 1718builder.WithAnnotation(callbackAnnotation); 1852return builder.WithAnnotation(new DockerfileBaseImageAnnotation 1880return builder.WithAnnotation(new ContainerNetworkAliasAnnotation(alias) { Network = KnownNetworkIdentifiers.DefaultAspireContainerNetwork });
CustomResourceExtensions.cs (1)
28return builder.WithAnnotation(new ResourceSnapshotAnnotation(initialSnapshot), ResourceAnnotationMutationBehavior.Replace);
McpServerResourceBuilderExtensions.cs (1)
51return builder.WithAnnotation(new McpServerEndpointAnnotation(async (resource, cancellationToken) =>
Pipelines\PipelineStepFactoryExtensions.cs (6)
31return builder.WithAnnotation(new PipelineStepAnnotation(factory)); 50return builder.WithAnnotation(new PipelineStepAnnotation(factory)); 69return builder.WithAnnotation(new PipelineStepAnnotation(factory)); 88return builder.WithAnnotation(new PipelineStepAnnotation(factory)); 145return builder.WithAnnotation(new PipelineConfigurationAnnotation(callback)); 164return builder.WithAnnotation(new PipelineConfigurationAnnotation(callback));
ProjectResourceBuilderExtensions.cs (10)
276.WithAnnotation(projectMetadata) 321.WithAnnotation(new ProjectMetadata(projectPath)) 419.WithAnnotation(projectMetadata) 493builder.WithAnnotation(launchDefaults); 615builder.WithAnnotation(new ExcludeLaunchProfileAnnotation()); 619builder.WithAnnotation(new LaunchProfileAnnotation(options.LaunchProfileName)); 627builder.WithAnnotation(new DefaultLaunchProfileAnnotation(appHostDefaultLaunchProfileName)); 894builder.WithAnnotation(new ReplicaAnnotation(replicas)); 1071.WithAnnotation(new ExplicitStartupAnnotation()) 1072.WithAnnotation(new ExcludeLifecycleCommandsAnnotation())
RequiredCommandResourceExtensions.cs (2)
38builder.WithAnnotation(new RequiredCommandAnnotation(command) 75builder.WithAnnotation(new RequiredCommandAnnotation(command)
ResourceBuilderExtensions.cs (55)
128return builder.WithAnnotation(new PersistenceAnnotation 181return builder.WithAnnotation(new PersistenceAnnotation 196return builder.WithAnnotation(new PersistenceAnnotation 233return builder.WithAnnotation(new EnvironmentAnnotation(name, value ?? string.Empty)); 355return builder.WithAnnotation(new EnvironmentCallbackAnnotation(name, callback)); 371return builder.WithAnnotation(new EnvironmentCallbackAnnotation(callback)); 388return builder.WithAnnotation(new EnvironmentCallbackAnnotation(callback)); 606return builder.WithAnnotation(new ConnectionPropertyAnnotation(name, value)); 624return builder.WithAnnotation(new ConnectionPropertyAnnotation(name, ReferenceExpression.Create($"{value}"))); 746return builder.WithAnnotation(new CommandLineArgsCallbackAnnotation(callback)); 764return builder.WithAnnotation(new ManifestPublishingCallbackAnnotation(callback), ResourceAnnotationMutationBehavior.Replace); 782return builder.WithAnnotation(new ManifestPublishingCallbackAnnotation(callback), ResourceAnnotationMutationBehavior.Replace); 800return builder.WithAnnotation(new ConnectionStringRedirectAnnotation(resource), ResourceAnnotationMutationBehavior.Replace); 884return builder.WithAnnotation(new ReferenceEnvironmentInjectionAnnotation(flags)); 1409builder.WithAnnotation(endpointReferenceAnnotation); 1616return builder.WithAnnotation(annotation); 1670builder.WithAnnotation(new EnvironmentCallbackAnnotation(context => 1699builder.WithAnnotation(new ProxySupportAnnotation { ProxyEnabled = proxyEnabled }, ResourceAnnotationMutationBehavior.Replace); 1925return builder.WithAnnotation(new Http2ServiceAnnotation()); 1984return builder.WithAnnotation(new ResourceUrlsCallbackAnnotation(callback)); 2008return builder.WithAnnotation(new ResourceUrlsCallbackAnnotation(callback)); 2064return builder.WithAnnotation(new ResourceUrlAnnotation { Url = url, DisplayText = displayText }); 2131return builder.WithAnnotation(new ResourceUrlsCallbackAnnotation(async c => 2272return builder.WithAnnotation(new ContainerFilesDestinationAnnotation() 2295return builder.WithAnnotation(new ContainerFilesSourceAnnotation() 2333return builder.WithAnnotation(ManifestPublishingCallbackAnnotation.Ignore); 2460return builder.WithAnnotation(new WaitAnnotation(dependency.Resource, WaitType.WaitUntilHealthy) { WaitBehavior = waitBehavior }); 2593return builder.WithAnnotation(new WaitAnnotation(dependency.Resource, WaitType.WaitUntilStarted) { WaitBehavior = waitBehavior }); 2623return builder.WithAnnotation(new ExplicitStartupAnnotation()); 2672return builder.WithAnnotation(new WaitAnnotation(dependency.Resource, WaitType.WaitForCompletion, exitCode)); 2725builder.WithAnnotation(new HealthCheckAnnotation(key)); 2935return builder.WithAnnotation(new ResourceCommandAnnotation(name, displayName, commandOptions.UpdateState ?? (c => ResourceCommandState.Enabled), executeCommand, commandOptions.Description, commandOptions.Parameter, commandOptions.Arguments, commandOptions.ConfirmationMessage, commandOptions.IconName, commandOptions.IconVariant, commandOptions.IsHighlighted, commandOptions.Visibility, commandOptions.ValidateArguments, commandOptions.Progress)); 3001return builder.WithAnnotation(new ResourceCommandAnnotation(name, displayName, updateState ?? (c => ResourceCommandState.Enabled), executeCommand, displayDescription, parameter, confirmationMessage, iconName, iconVariant, isHighlighted)); 4011return builder.WithAnnotation(annotation, ResourceAnnotationMutationBehavior.Replace); 4062return builder.WithAnnotation(annotation, ResourceAnnotationMutationBehavior.Replace); 4113return builder.WithAnnotation(annotation, ResourceAnnotationMutationBehavior.Replace); 4150return builder.WithAnnotation(new CertificateTrustConfigurationCallbackAnnotation(callback), ResourceAnnotationMutationBehavior.Replace); 4185return builder.WithAnnotation(annotation, ResourceAnnotationMutationBehavior.Replace); 4221return builder.WithAnnotation(annotation, ResourceAnnotationMutationBehavior.Replace); 4253return builder.WithAnnotation(annotation, ResourceAnnotationMutationBehavior.Replace); 4287return builder.WithAnnotation(annotation, ResourceAnnotationMutationBehavior.Append); 4447return builder.WithAnnotation(new ResourceRelationshipAnnotation(resource, type)); 4486return builder.WithAnnotation(new ResourceRelationshipAnnotation(resource, KnownRelationshipTypes.Reference)); 4566return builder.WithAnnotation(new ResourceRelationshipAnnotation(resourceBuilder.Resource, KnownRelationshipTypes.Reference)); 4739return builder.WithAnnotation(new ResourceIconAnnotation(iconName, iconVariant), ResourceAnnotationMutationBehavior.Replace); 4759builder.WithAnnotation(new ComputeEnvironmentAnnotation(computeEnvironmentResource.Resource)); 4825return builder.WithAnnotation(new LaunchToolArgsCallbackAnnotation( 4968return builder.WithAnnotation(SupportsDebuggingAnnotation.Create( 5108return builder.WithAnnotation(probeAnnotation); 5123return builder.WithAnnotation(new ExcludeFromMcpAnnotation()); 5143return builder.WithAnnotation(new HiddenAnnotation(HiddenBehavior.Always), ResourceAnnotationMutationBehavior.Replace); 5163return builder.WithAnnotation(new HiddenAnnotation(HiddenBehavior.OnCompletion) { SuccessfulExitCodes = [exitCode] }, ResourceAnnotationMutationBehavior.Replace); 5214return builder.WithAnnotation(new HiddenAnnotation(HiddenBehavior.OnCompletion) { SuccessfulExitCodes = exitCodes.Count > 0 ? [.. exitCodes] : [0] }, ResourceAnnotationMutationBehavior.Replace); 5252return builder.WithAnnotation(new ContainerImagePushOptionsCallbackAnnotation(callback)); 5293return builder.WithAnnotation(new ContainerImagePushOptionsCallbackAnnotation(callback));
TerminalResourceBuilderExtensions.cs (2)
90builder.WithAnnotation(annotation); 95builder.WithAnnotation(new ForceProcessExecutionAnnotation());
VolumeResourceBuilderExtensions.cs (4)
68builder.WithAnnotation(new ContainerMountAnnotation(name, target, ContainerMountType.Volume, isReadOnly)); 85builder.WithAnnotation(new ContainerMountAnnotation(name, target, ContainerMountType.Volume, isReadOnly)); 96builder.WithAnnotation(binding); 97builder.WithAnnotation(new EnvironmentCallbackAnnotation(
Aspire.Hosting.Azure (4)
AzureUserAssignedIdentityExtensions.cs (1)
72builder.WithAnnotation(new AppIdentityAnnotation(identityResourceBuilder.Resource));
ExistingAzureResourceExtensions.cs (3)
702builder.WithAnnotation(CreateExistingAzureResourceAnnotation(name, resourceGroup, subscription, isTenantScope)); 715builder.WithAnnotation(CreateExistingAzureResourceAnnotation(name, resourceGroup, subscription, isTenantScope)); 726builder.WithAnnotation(CreateExistingAzureResourceAnnotation(name, resourceGroup, subscription, isTenantScope));
Aspire.Hosting.Azure.AppConfiguration (3)
AzureAppConfigurationExtensions.cs (1)
113.WithAnnotation(new ContainerImageAnnotation
src\Shared\AzureRoleAssignmentUtils.cs (2)
15return builder.WithAnnotation(new RoleAssignmentAnnotation(target.Resource, CreateRoleDefinitions(roles, getName))); 22return builder.WithAnnotation(new DefaultRoleAssignmentsAnnotation(CreateRoleDefinitions(roles, getName)));
Aspire.Hosting.Azure.AppContainers (7)
AzureContainerAppContainerExtensions.cs (1)
48container.WithAnnotation(new AzureContainerAppCustomizationAnnotation(configure));
AzureContainerAppExecutableExtensions.cs (1)
48return executable.WithAnnotation(new AzureContainerAppCustomizationAnnotation(configure));
AzureContainerAppExtensions.cs (2)
1056builder.WithAnnotation(new AzureLogAnalyticsWorkspaceReferenceAnnotation(workspaceBuilder.Resource)); 1113builder.WithAnnotation(new AzureContainerAppEnvironmentAcrPullIdentityAnnotation(identityBuilder.Resource));
AzureContainerAppProjectExtensions.cs (1)
49project.WithAnnotation(new AzureContainerAppCustomizationAnnotation(configure));
ContainerAppExtensions.cs (1)
166resource.WithAnnotation(new AzureContainerAppJobCustomizationAnnotation(configure));
src\Shared\CrossScopeAcrPullIdentityPreparer.cs (1)
47builder.WithAnnotation(new PipelineStepAnnotation(context =>
Aspire.Hosting.Azure.ApplicationInsights (1)
AzureApplicationInsightsExtensions.cs (1)
141return builder.WithAnnotation(new LogAnalyticsWorkspaceReferenceAnnotation(workspaceId));
Aspire.Hosting.Azure.AppService (5)
AzureAppServiceComputeResourceExtensions.cs (3)
56builder = builder.WithAnnotation(new AzureAppServiceWebsiteCustomizationAnnotation(configure)); 61builder = builder.WithAnnotation(new AzureAppServiceWebsiteSlotCustomizationAnnotation(configureSlot)); 96return builder.WithAnnotation(new AzureAppServiceIgnoreEnvironmentVariableChecksAnnotation());
AzureAppServiceEnvironmentExtensions.cs (1)
544builder.WithAnnotation(new AzureAppServiceEnvironmentAcrPullIdentityAnnotation(identityBuilder.Resource));
src\Shared\CrossScopeAcrPullIdentityPreparer.cs (1)
47builder.WithAnnotation(new PipelineStepAnnotation(context =>
Aspire.Hosting.Azure.CognitiveServices (2)
src\Shared\AzureRoleAssignmentUtils.cs (2)
15return builder.WithAnnotation(new RoleAssignmentAnnotation(target.Resource, CreateRoleDefinitions(roles, getName))); 22return builder.WithAnnotation(new DefaultRoleAssignmentsAnnotation(CreateRoleDefinitions(roles, getName)));
Aspire.Hosting.Azure.ContainerRegistry (4)
AzureContainerRegistryExtensions.cs (2)
53.WithAnnotation(new DefaultRoleAssignmentsAnnotation(new HashSet<RoleDefinition>())); 96builder.WithAnnotation(new ContainerRegistryReferenceAnnotation(registryBuilder.Resource));
src\Shared\AzureRoleAssignmentUtils.cs (2)
15return builder.WithAnnotation(new RoleAssignmentAnnotation(target.Resource, CreateRoleDefinitions(roles, getName))); 22return builder.WithAnnotation(new DefaultRoleAssignmentsAnnotation(CreateRoleDefinitions(roles, getName)));
Aspire.Hosting.Azure.CosmosDB (3)
AzureCosmosDBExtensions.cs (3)
46.WithAnnotation(new DefaultRoleAssignmentsAnnotation(new HashSet<RoleDefinition>())); 108builder.WithAnnotation(new EmulatorResourceAnnotation()); 112.WithAnnotation(new ContainerImageAnnotation
Aspire.Hosting.Azure.EventHubs (7)
AzureEventHubsExtensions.cs (5)
267builder.WithAnnotation(new EmulatorResourceAnnotation()); 274.WithAnnotation(new ContainerImageAnnotation 301builder.WithAnnotation(new EnvironmentCallbackAnnotation((EnvironmentCallbackContext context) => 438return builder.WithAnnotation(new ConfigFileAnnotation(path), ResourceAnnotationMutationBehavior.Replace); 454builder.WithAnnotation(new ConfigJsonAnnotation(configJson));
src\Shared\AzureRoleAssignmentUtils.cs (2)
15return builder.WithAnnotation(new RoleAssignmentAnnotation(target.Resource, CreateRoleDefinitions(roles, getName))); 22return builder.WithAnnotation(new DefaultRoleAssignmentsAnnotation(CreateRoleDefinitions(roles, getName)));
Aspire.Hosting.Azure.FrontDoor (1)
AzureFrontDoorExtensions.cs (1)
199return builder.WithAnnotation(new AzureFrontDoorOriginAnnotation(resource.Resource));
Aspire.Hosting.Azure.Functions (11)
AzureFunctionsProjectResourceExtensions.cs (3)
191.WithAnnotation(projectMetadata) 192.WithAnnotation(new AzureFunctionsAnnotation()) 208functionsBuilder.WithAnnotation(new DefaultLaunchProfileAnnotation(appHostDefaultLaunchProfileName));
DurableTask\DurableTaskResourceExtensions.cs (6)
66builder.WithAnnotation(new DurableTaskSchedulerConnectionStringAnnotation(connectionString)); 98builder.WithAnnotation(new DurableTaskSchedulerConnectionStringAnnotation(connectionString.Resource)); 147builder.WithAnnotation(new EmulatorResourceAnnotation()); 154.WithAnnotation(new ContainerImageAnnotation 266return builder.WithAnnotation(new DurableTaskHubNameAnnotation(taskHubName)); 289return builder.WithAnnotation(new DurableTaskHubNameAnnotation(taskHubName.Resource));
src\Shared\AzureRoleAssignmentUtils.cs (2)
15return builder.WithAnnotation(new RoleAssignmentAnnotation(target.Resource, CreateRoleDefinitions(roles, getName))); 22return builder.WithAnnotation(new DefaultRoleAssignmentsAnnotation(CreateRoleDefinitions(roles, getName)));
Aspire.Hosting.Azure.KeyVault (2)
src\Shared\AzureRoleAssignmentUtils.cs (2)
15return builder.WithAnnotation(new RoleAssignmentAnnotation(target.Resource, CreateRoleDefinitions(roles, getName))); 22return builder.WithAnnotation(new DefaultRoleAssignmentsAnnotation(CreateRoleDefinitions(roles, getName)));
Aspire.Hosting.Azure.Kubernetes (5)
AzureKubernetesEnvironmentExtensions.cs (5)
95k8sEnvBuilder.WithAnnotation(new ContainerRegistryReferenceAnnotation(defaultRegistry.Resource)); 111k8sEnvBuilder.WithAnnotation(new PipelineConfigurationAnnotation(context => 264builder.WithAnnotation(new AksSubnetAnnotation(subnet.Resource.Id), ResourceAnnotationMutationBehavior.Replace); 300builder.WithAnnotation(new AksSubnetAnnotation(subnet.Resource.Id)); 339builder.WithAnnotation(
Aspire.Hosting.Azure.Kubernetes.Tests (2)
AzureKubernetesEnvironmentExtensionsTests.cs (2)
596.WithAnnotation(new AzureSubnetServiceDelegationAnnotation("First", "Microsoft.Netapp/volumes")) 597.WithAnnotation(new AzureSubnetServiceDelegationAnnotation("Second", "Microsoft.Sql/managedInstances"));
Aspire.Hosting.Azure.Kusto (6)
AzureKustoBuilderExtensions.cs (4)
98.WithAnnotation(new DefaultRoleAssignmentsAnnotation(new HashSet<RoleDefinition>())); 169builder.WithAnnotation(new EmulatorResourceAnnotation()); 178.WithAnnotation(new ContainerImageAnnotation 208builder.WithAnnotation(new AzureKustoCreateDatabaseScriptAnnotation(script));
src\Shared\AzureRoleAssignmentUtils.cs (2)
15return builder.WithAnnotation(new RoleAssignmentAnnotation(target.Resource, CreateRoleDefinitions(roles, getName))); 22return builder.WithAnnotation(new DefaultRoleAssignmentsAnnotation(CreateRoleDefinitions(roles, getName)));
Aspire.Hosting.Azure.Kusto.Tests (1)
AddAzureKustoTests.cs (1)
102builder.WithAnnotation(new ContainerNameAnnotation() { Name = "custom-kusto-emulator" });
Aspire.Hosting.Azure.Network (2)
AzureVirtualNetworkExtensions.cs (2)
342builder.WithAnnotation( 405return builder.WithAnnotation(new AzureSubnetServiceDelegationAnnotation(name, serviceName));
Aspire.Hosting.Azure.PostgreSQL (2)
AzurePostgresExtensions.cs (2)
83builder.WithAnnotation(new AzureBicepResourceAnnotation(resource)); 153.WithAnnotation(new DefaultRoleAssignmentsAnnotation(new HashSet<RoleDefinition>()));
Aspire.Hosting.Azure.Redis (3)
AzureManagedRedisExtensions.cs (1)
61.WithAnnotation(new DefaultRoleAssignmentsAnnotation(new HashSet<RoleDefinition>()));
AzureRedisExtensions.cs (2)
66builder.WithAnnotation(new AzureBicepResourceAnnotation(resource)); 127.WithAnnotation(new DefaultRoleAssignmentsAnnotation(new HashSet<RoleDefinition>()));
Aspire.Hosting.Azure.Sandboxes (6)
AzureSandboxesExtensions.cs (3)
179.WithAnnotation(new AzureSandboxContainerOptionsAnnotation(copiedOptions), ResourceAnnotationMutationBehavior.Replace); 306return builder.WithAnnotation( 499.WithAnnotation(new DefaultRoleAssignmentsAnnotation(new HashSet<RoleDefinition>()));
src\Shared\AzureRoleAssignmentUtils.cs (2)
15return builder.WithAnnotation(new RoleAssignmentAnnotation(target.Resource, CreateRoleDefinitions(roles, getName))); 22return builder.WithAnnotation(new DefaultRoleAssignmentsAnnotation(CreateRoleDefinitions(roles, getName)));
src\Shared\CrossScopeAcrPullIdentityPreparer.cs (1)
47builder.WithAnnotation(new PipelineStepAnnotation(context =>
Aspire.Hosting.Azure.Search (2)
src\Shared\AzureRoleAssignmentUtils.cs (2)
15return builder.WithAnnotation(new RoleAssignmentAnnotation(target.Resource, CreateRoleDefinitions(roles, getName))); 22return builder.WithAnnotation(new DefaultRoleAssignmentsAnnotation(CreateRoleDefinitions(roles, getName)));
Aspire.Hosting.Azure.ServiceBus (7)
AzureServiceBusExtensions.cs (5)
411builder.WithAnnotation(new EmulatorResourceAnnotation()); 422.WithAnnotation(new ContainerImageAnnotation 443builder.WithAnnotation(new EnvironmentCallbackAnnotation((EnvironmentCallbackContext context) => 532return builder.WithAnnotation(new ConfigFileAnnotation(path), ResourceAnnotationMutationBehavior.Replace); 564builder.WithAnnotation(new ConfigJsonAnnotation(configJson));
src\Shared\AzureRoleAssignmentUtils.cs (2)
15return builder.WithAnnotation(new RoleAssignmentAnnotation(target.Resource, CreateRoleDefinitions(roles, getName))); 22return builder.WithAnnotation(new DefaultRoleAssignmentsAnnotation(CreateRoleDefinitions(roles, getName)));
Aspire.Hosting.Azure.SignalR (4)
AzureSignalRExtensions.cs (2)
160builder.WithAnnotation(new EmulatorResourceAnnotation()); 164.WithAnnotation(new ContainerImageAnnotation
src\Shared\AzureRoleAssignmentUtils.cs (2)
15return builder.WithAnnotation(new RoleAssignmentAnnotation(target.Resource, CreateRoleDefinitions(roles, getName))); 22return builder.WithAnnotation(new DefaultRoleAssignmentsAnnotation(CreateRoleDefinitions(roles, getName)));
Aspire.Hosting.Azure.Sql (3)
AzureSqlExtensions.cs (2)
42builder.WithAnnotation(new AzureBicepResourceAnnotation(resource)); 97.WithAnnotation(new DefaultRoleAssignmentsAnnotation(new HashSet<RoleDefinition>()));
AzureSqlServerResource.cs (1)
557.WithAnnotation(new ExistingAzureResourceAnnotation(AdminName));
Aspire.Hosting.Azure.Storage (4)
AzureStorageExtensions.cs (2)
196builder.WithAnnotation(new EmulatorResourceAnnotation()); 201.WithAnnotation(new ContainerImageAnnotation
src\Shared\AzureRoleAssignmentUtils.cs (2)
15return builder.WithAnnotation(new RoleAssignmentAnnotation(target.Resource, CreateRoleDefinitions(roles, getName))); 22return builder.WithAnnotation(new DefaultRoleAssignmentsAnnotation(CreateRoleDefinitions(roles, getName)));
Aspire.Hosting.Azure.Tests (34)
AzureAppServiceTests.cs (1)
727.WithAnnotation(new AzureAppServiceWebsiteCustomizationAnnotation((_, _) => { }));
AzureContainerAppsTests.cs (2)
1893.WithAnnotation(new AzureContainerAppCustomizationAnnotation((_, _) => { })); 1896.WithAnnotation(new AzureContainerAppJobCustomizationAnnotation((_, _) => { }));
AzureCosmosDBExtensionsTests.cs (4)
782cosmos.WithAnnotation(new HttpsCertificateAnnotation 813cosmos.WithAnnotation(new HttpsCertificateAnnotation 843cosmos.WithAnnotation(new HttpsCertificateAnnotation 872cosmos.WithAnnotation(new HttpsCertificateAnnotation
AzureManagedRedisExtensionsTests.cs (3)
120cache.WithAnnotation(new Dummy1Annotation()); 125c.WithAnnotation(new Dummy2Annotation()); 130cache.WithAnnotation(new Dummy1Annotation());
AzurePostgresExtensionsTests.cs (6)
271postgres.WithAnnotation(new Dummy1Annotation()); 272db?.WithAnnotation(new Dummy1Annotation()); 277c.WithAnnotation(new Dummy2Annotation()); 287db!.WithAnnotation(new Dummy1Annotation()); 293postgres.WithAnnotation(new Dummy1Annotation()); 294db!.WithAnnotation(new Dummy1Annotation());
AzureRedisExtensionsTests.cs (3)
164cache.WithAnnotation(new Dummy1Annotation()); 169c.WithAnnotation(new Dummy2Annotation()); 174cache.WithAnnotation(new Dummy1Annotation());
AzureSandboxesTests.cs (3)
175.WithAnnotation(new AppIdentityAnnotation(computeIdentity.Resource)) 197.WithAnnotation(new AppIdentityAnnotation(identity.Resource)) 222.WithAnnotation(new AppIdentityAnnotation(identity.Resource))
AzureSqlExtensionsTests.cs (6)
191sql.WithAnnotation(new Dummy1Annotation()); 192db?.WithAnnotation(new Dummy1Annotation()); 197c.WithAnnotation(new Dummy2Annotation()); 207db!.WithAnnotation(new Dummy1Annotation()); 213sql.WithAnnotation(new Dummy1Annotation()); 214db!.WithAnnotation(new Dummy1Annotation());
AzureVirtualNetworkExtensionsTests.cs (6)
118.WithAnnotation(new AzureSubnetServiceDelegationAnnotation("ContainerAppsDelegation", "Microsoft.App/environments")); 238.WithAnnotation(new AzureSubnetServiceDelegationAnnotation("First", "Microsoft.Sql/managedInstances")) 239.WithAnnotation(new AzureSubnetServiceDelegationAnnotation("Second", "Microsoft.NetApp/volumes")); 318.WithAnnotation(new AzureSubnetServiceDelegationAnnotation("AppServiceDelegation", "microsoft.web/serverfarms")); 335.WithAnnotation(new AzureSubnetServiceDelegationAnnotation("ContainerApps", "Microsoft.App/environments")) 336.WithAnnotation(new AzureSubnetServiceDelegationAnnotation("AppService", "microsoft.web/serverfarms"));
Aspire.Hosting.Azure.WebPubSub (2)
src\Shared\AzureRoleAssignmentUtils.cs (2)
15return builder.WithAnnotation(new RoleAssignmentAnnotation(target.Resource, CreateRoleDefinitions(roles, getName))); 22return builder.WithAnnotation(new DefaultRoleAssignmentsAnnotation(CreateRoleDefinitions(roles, getName)));
Aspire.Hosting.Blazor (1)
BlazorGatewayExtensions.cs (1)
572gateway.WithAnnotation(new ContainerFilesDestinationAnnotation
Aspire.Hosting.CodeGeneration.Go.Tests (1)
tests\Aspire.Hosting.CodeGeneration.TypeScript.Tests\TestTypes\TestExtensions.cs (1)
136return builder.WithAnnotation(new TestPersistenceAnnotation(mode));
Aspire.Hosting.CodeGeneration.Java.Tests (1)
tests\Aspire.Hosting.CodeGeneration.TypeScript.Tests\TestTypes\TestExtensions.cs (1)
136return builder.WithAnnotation(new TestPersistenceAnnotation(mode));
Aspire.Hosting.CodeGeneration.Python.Tests (1)
tests\Aspire.Hosting.CodeGeneration.TypeScript.Tests\TestTypes\TestExtensions.cs (1)
136return builder.WithAnnotation(new TestPersistenceAnnotation(mode));
Aspire.Hosting.CodeGeneration.Rust.Tests (1)
tests\Aspire.Hosting.CodeGeneration.TypeScript.Tests\TestTypes\TestExtensions.cs (1)
136return builder.WithAnnotation(new TestPersistenceAnnotation(mode));
Aspire.Hosting.CodeGeneration.TypeScript.Tests (1)
TestTypes\TestExtensions.cs (1)
136return builder.WithAnnotation(new TestPersistenceAnnotation(mode));
Aspire.Hosting.Docker (1)
DockerComposeServiceExtensions.cs (1)
48return builder.WithAnnotation(new DockerComposeServiceCustomizationAnnotation(configure));
Aspire.Hosting.Docker.Tests (1)
DockerComposeTests.cs (1)
137.WithAnnotation(new DockerComposeServiceCustomizationAnnotation((_, _) => { }));
Aspire.Hosting.Dotnet (1)
DotnetProjectHostingExtensions.cs (1)
126.WithAnnotation(projectMetadata)
Aspire.Hosting.EntityFrameworkCore (1)
EFResourceBuilderExtensions.cs (1)
668toolBuilder.WithAnnotation(callback);
Aspire.Hosting.Foundry (2)
src\Shared\AzureRoleAssignmentUtils.cs (2)
15return builder.WithAnnotation(new RoleAssignmentAnnotation(target.Resource, CreateRoleDefinitions(roles, getName))); 22return builder.WithAnnotation(new DefaultRoleAssignmentsAnnotation(CreateRoleDefinitions(roles, getName)));
Aspire.Hosting.Garnet (1)
GarnetBuilderExtensions.cs (1)
311return builder.WithAnnotation(new PersistenceAnnotation(interval), ResourceAnnotationMutationBehavior.Replace);
Aspire.Hosting.Go (15)
GoHostingExtensions.cs (15)
290rb.WithAnnotation(new GoPackagePathAnnotation(packagePath), ResourceAnnotationMutationBehavior.Replace); 295rb.WithAnnotation(new GoBuildTagsAnnotation(buildTags), ResourceAnnotationMutationBehavior.Replace); 300rb.WithAnnotation(new GoLdFlagsAnnotation(ldFlags), ResourceAnnotationMutationBehavior.Replace); 305rb.WithAnnotation(new GoGcFlagsAnnotation(gcFlags), ResourceAnnotationMutationBehavior.Replace); 310rb.WithAnnotation(new GoRaceDetectorAnnotation(), ResourceAnnotationMutationBehavior.Replace); 345return builder.WithAnnotation(new GoAppArgsAnnotation(args), ResourceAnnotationMutationBehavior.Replace); 368builder.WithAnnotation(new GoModTidyAnnotation()); 382builder.WithAnnotation(new GoModTidyBuilderAnnotation(tidy)); 418builder.WithAnnotation(new GoModVendorAnnotation()); 437builder.WithAnnotation(new GoModVendorBuilderAnnotation(vendor)); 464builder.WithAnnotation(new GoModDownloadAnnotation()); 512builder.WithAnnotation(new GoVetToolAnnotation()); 588return builder.WithAnnotation( 714.WithAnnotation( 717.WithAnnotation(
Aspire.Hosting.Go.Tests (4)
AddGoAppTests.cs (4)
957.WithAnnotation(new ContainerFilesSourceAnnotation { SourcePath = "/app/dist" }); 988.WithAnnotation(new ContainerFilesSourceAnnotation { SourcePath = "/app/dist" }); 1021.WithAnnotation(new ContainerFilesSourceAnnotation { SourcePath = "/app/dist" }); 1027.WithAnnotation(new ContainerFilesSourceAnnotation { SourcePath = "/app/public" });
Aspire.Hosting.Java (13)
JavaHostingExtensions.cs (13)
199rb.WithAnnotation( 415.WithAnnotation(new JavaQuarkusAnnotation(), ResourceAnnotationMutationBehavior.Replace) 553builder.WithAnnotation( 573builder.WithAnnotation( 580builder.WithAnnotation( 712builder.WithAnnotation( 831builder.WithAnnotation( 928builder.WithAnnotation( 958builder.WithAnnotation(new WrapperAnnotation(resolvedWrapperPath), ResourceAnnotationMutationBehavior.Replace); 1011return builder.WithAnnotation(new JavaMainClassAnnotation(mainClass), ResourceAnnotationMutationBehavior.Replace); 1042return builder.WithAnnotation(new JavaJarArtifactAnnotation(jarPath), ResourceAnnotationMutationBehavior.Replace); 1219builder.WithAnnotation(new JavaOtelAgentAnnotation(agentPath), ResourceAnnotationMutationBehavior.Replace); 1566builder.WithAnnotation(new JavaWrapperValidationAnnotation(tool));
Aspire.Hosting.JavaScript (19)
JavaScriptHostingExtensions.cs (19)
970builder.WithAnnotation(annotation) 1028builder.WithAnnotation(annotation) 1092builder.WithAnnotation(annotation) 1354.WithAnnotation(new ContainerFilesSourceAnnotation() { SourcePath = "/app/dist" }) 1371containerBuilder.WithAnnotation(new PipelineStepAnnotation(_ => new PipelineStep 1703.WithAnnotation(new JavaScriptPublishModeAnnotation(JavaScriptPublishMode.NextStandalone)) 1716resourceBuilder.WithAnnotation(new PipelineStepAnnotation(factoryCtx => 1803.WithAnnotation(new JavaScriptPackageManagerAnnotation("npm", runScriptCommand: "run", cacheMount: "/root/.npm") 1807.WithAnnotation(new JavaScriptInstallCommandAnnotation([installCommand, .. installArgs ?? []]) 1866.WithAnnotation(new JavaScriptPackageManagerAnnotation("bun", runScriptCommand: "run", cacheMount: "/root/.bun/install/cache") 1873.WithAnnotation(new JavaScriptInstallCommandAnnotation(["install", .. installArgs]) 1882resource.WithAnnotation(new DockerfileBaseImageAnnotation 1950.WithAnnotation(packageManager) 1951.WithAnnotation(new JavaScriptInstallCommandAnnotation(["install", .. installArgs]) 2027.WithAnnotation(new JavaScriptPackageManagerAnnotation("pnpm", runScriptCommand: "run", cacheMount: "/pnpm/store") 2036.WithAnnotation(new JavaScriptInstallCommandAnnotation(["install", .. installArgs]) 2134return resource.WithAnnotation(new JavaScriptBuildScriptAnnotation(scriptName, args)); 2153return resource.WithAnnotation(new JavaScriptRunScriptAnnotation(scriptName, args)); 2392resource.WithAnnotation(new JavaScriptPackageInstallerAnnotation(installer));
Aspire.Hosting.JavaScript.Tests (4)
AddNodeAppTests.cs (4)
174.WithAnnotation(new JavaScriptPackageManagerAnnotation("mypm", runScriptCommand: null, cacheMount: null) 178.WithAnnotation(new JavaScriptInstallCommandAnnotation(["myinstall"])) 356.WithAnnotation(new ContainerFilesSourceAnnotation() { SourcePath = "/app/dist" }); 413.WithAnnotation(new ContainerFilesSourceAnnotation() { SourcePath = "/app/dist" });
Aspire.Hosting.Keycloak.Tests (1)
KeycloakResourceBuilderTests.cs (1)
72keycloak.WithAnnotation(new HttpsCertificateAnnotation
Aspire.Hosting.Kubernetes (21)
CertManagerExtensions.cs (2)
138resourceBuilder.WithAnnotation(new PipelineStepAnnotation(_ => 140resourceBuilder.WithAnnotation(new PipelineStepAnnotation(_ =>
HelmChartOptions.cs (10)
47EnvironmentBuilder.WithAnnotation(new KubernetesNamespaceAnnotation(expression), ResourceAnnotationMutationBehavior.Replace); 62EnvironmentBuilder.WithAnnotation(new KubernetesNamespaceAnnotation(expression), ResourceAnnotationMutationBehavior.Replace); 94EnvironmentBuilder.WithAnnotation(new HelmReleaseNameAnnotation(expression), ResourceAnnotationMutationBehavior.Replace); 109EnvironmentBuilder.WithAnnotation(new HelmReleaseNameAnnotation(expression), ResourceAnnotationMutationBehavior.Replace); 146EnvironmentBuilder.WithAnnotation(new HelmChartVersionAnnotation(expression), ResourceAnnotationMutationBehavior.Replace); 161EnvironmentBuilder.WithAnnotation(new HelmChartVersionAnnotation(expression), ResourceAnnotationMutationBehavior.Replace); 193EnvironmentBuilder.WithAnnotation(new HelmChartNameAnnotation(expression), ResourceAnnotationMutationBehavior.Replace); 208EnvironmentBuilder.WithAnnotation(new HelmChartNameAnnotation(expression), ResourceAnnotationMutationBehavior.Replace); 240EnvironmentBuilder.WithAnnotation(new HelmChartDescriptionAnnotation(expression), ResourceAnnotationMutationBehavior.Replace); 255EnvironmentBuilder.WithAnnotation(new HelmChartDescriptionAnnotation(expression), ResourceAnnotationMutationBehavior.Replace);
KubernetesEnvironmentExtensions.cs (1)
527builder.WithAnnotation(new KubernetesNodePoolAnnotation(nodePool.Resource));
KubernetesHelmChartExtensions.cs (1)
89chartBuilder.WithAnnotation(new PipelineStepAnnotation(_ =>
KubernetesPersistentVolumeExtensions.cs (6)
269builder.WithAnnotation(new VolumeMountBindingAnnotation(volume.Resource.Name) 284builder.WithAnnotation(new KubernetesPersistentVolumeBindingAnnotation( 442builder.WithAnnotation(new ContainerMountAnnotation( 448builder.WithAnnotation(binding); 452builder.WithAnnotation(new EnvironmentCallbackAnnotation(context => 458builder.WithAnnotation(new KubernetesPersistentVolumeBindingAnnotation(
KubernetesServiceExtensions.cs (1)
47return builder.WithAnnotation(new KubernetesServiceCustomizationAnnotation(configure));
Aspire.Hosting.Kubernetes.Tests (1)
KubernetesEnvironmentResourceTests.cs (1)
83.WithAnnotation(new KubernetesServiceCustomizationAnnotation((_) => { }));
Aspire.Hosting.Maui (19)
MauiAndroidExtensions.cs (6)
161.WithAnnotation(new MauiProjectMetadata(projectPath)) 162.WithAnnotation(new MauiAndroidEnvironmentAnnotation()) // Enable environment variable support via targets file 163.WithAnnotation(new ExecutableAnnotation 366.WithAnnotation(new MauiProjectMetadata(projectPath)) 367.WithAnnotation(new MauiAndroidEnvironmentAnnotation()) // Enable environment variable support via targets file 368.WithAnnotation(new ExecutableAnnotation
MauiiOSExtensions.cs (6)
168.WithAnnotation(new MauiProjectMetadata(projectPath)) 169.WithAnnotation(new MauiiOSEnvironmentAnnotation()) // Enable environment variable support via targets file 170.WithAnnotation(new ExecutableAnnotation 379.WithAnnotation(new MauiProjectMetadata(projectPath)) 380.WithAnnotation(new MauiiOSEnvironmentAnnotation()) // Enable environment variable support via targets file 381.WithAnnotation(new ExecutableAnnotation
MauiMacCatalystExtensions.cs (2)
92.WithAnnotation(new MauiProjectMetadata(projectPath)) 93.WithAnnotation(new ExecutableAnnotation
MauiPlatformHelper.cs (3)
98resourceBuilder.WithAnnotation(new ProjectLaunchArgsOverrideAnnotation(["build", "--no-restore", "/t:Run", "-p:NoBuild=true"], leadingResourceArgumentToRemove: "run")); 106resourceBuilder.WithAnnotation(new MauiBuildInfoAnnotation(projectPath, workingDir, platformTfm, configuration, additionalArgs)); 155resourceBuilder.WithAnnotation(new UnsupportedPlatformAnnotation(reason), ResourceAnnotationMutationBehavior.Append);
MauiWindowsExtensions.cs (2)
92.WithAnnotation(new MauiProjectMetadata(projectPath)) 93.WithAnnotation(new ExecutableAnnotation
Aspire.Hosting.MySql (1)
MySqlBuilderExtensions.cs (1)
208builder.WithAnnotation(new MySqlCreateDatabaseScriptAnnotation(script));
Aspire.Hosting.Orleans (1)
OrleansServiceExtensions.cs (1)
392return builder.WithAnnotation(new OrleansProviderTypeAnnotation(providerType), ResourceAnnotationMutationBehavior.Replace);
Aspire.Hosting.PostgreSQL (1)
PostgresBuilderExtensions.cs (1)
553builder.WithAnnotation(new PostgresCreateDatabaseScriptAnnotation(script));
Aspire.Hosting.Python (9)
PythonAppResourceBuilderExtensions.cs (9)
368.WithAnnotation(new PythonEntrypointAnnotation 930builder.WithAnnotation(new PythonExecutableDebuggableAnnotation()); 1061builder.WithAnnotation(new PythonEntrypointAnnotation 1174.WithAnnotation(new PythonPackageManagerAnnotation(virtualEnvironment.GetExecutable("pip")), ResourceAnnotationMutationBehavior.Replace) 1175.WithAnnotation(new PythonInstallCommandAnnotation([.. baseInstallArgs, .. installArgs ?? []]), ResourceAnnotationMutationBehavior.Replace); 1243.WithAnnotation(new PythonPackageManagerAnnotation("uv"), ResourceAnnotationMutationBehavior.Replace) 1244.WithAnnotation(new PythonInstallCommandAnnotation(args), ResourceAnnotationMutationBehavior.Replace); 1358builder.WithAnnotation(new PythonPackageInstallerAnnotation(installer)); 1533builder.WithAnnotation(existing);
Aspire.Hosting.Python.Tests (1)
AddUvicornAppTests.cs (1)
79.WithAnnotation(new ContainerFilesSourceAnnotation() { SourcePath = "/app/dist" });
Aspire.Hosting.Radius (1)
Secrets\RadiusSecretStoreExtensions.cs (1)
80storeBuilder.WithAnnotation(new PipelineStepAnnotation(_ => new PipelineStep
Aspire.Hosting.Redis (2)
RedisBuilderExtensions.cs (2)
525return builder.WithAnnotation( 568return builder.WithAnnotation(new RedisModuleAnnotation(path));
Aspire.Hosting.Rust (4)
RustHostingExtensions.cs (4)
245return builder.WithAnnotation(annotation); 489builder.WithAnnotation(options); 753containerBuilder.WithAnnotation( 764containerBuilder.WithAnnotation(
Aspire.Hosting.Rust.Tests (3)
AddRustAppPublishTests.cs (3)
284.PublishAsDockerFile(container => container.WithAnnotation( 308.WithAnnotation(new ContainerFilesSourceAnnotation { SourcePath = "/app/dist" }); 311.WithAnnotation(new ContainerFilesSourceAnnotation { SourcePath = "/app/public" });
Aspire.Hosting.SqlServer (1)
SqlServerBuilderExtensions.cs (1)
222builder.WithAnnotation(new SqlServerCreateDatabaseScriptAnnotation(script));
Aspire.Hosting.Tests (110)
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (11)
125resourceWithReplicas.WithAnnotation(new DcpInstancesAnnotation([ 799.WithAnnotation(new McpServerEndpointAnnotation((resource, cancellationToken) => 1417resourceWithReplicas.WithAnnotation(new DcpInstancesAnnotation([ 1456resourceWithReplicas.WithAnnotation(new DcpInstancesAnnotation([ 1495resourceWithReplicas.WithAnnotation(new DcpInstancesAnnotation([ 1529resourceWithReplicas.WithAnnotation(new DcpInstancesAnnotation([ 1564resourceWithReplicas.WithAnnotation(new DcpInstancesAnnotation([ 1987resourceWithReplicas.WithAnnotation(new DcpInstancesAnnotation([ 1993otherResource.WithAnnotation(new DcpInstancesAnnotation([ 2047resourceWithReplicas.WithAnnotation(new DcpInstancesAnnotation([ 2787resourceWithReplicas.WithAnnotation(new DcpInstancesAnnotation([
BuildOnlyContainerValidationTests.cs (2)
98.WithAnnotation(new DockerfileBuildAnnotation("context", "Dockerfile", null) { HasEntrypoint = false }) 99.WithAnnotation(new ContainerFilesSourceAnnotation { SourcePath = "/app/dist" });
Dcp\DcpExecutorTests.cs (24)
1101.WithAnnotation(new ContainerImageAnnotation { Image = "image" }) 1102.WithAnnotation(new ContainerLifetimeAnnotation { Lifetime = ContainerLifetime.Persistent }) 4780.WithAnnotation(new ExecutableAnnotation 5160.WithAnnotation(new ReplicaAnnotation(2)) 6179.WithAnnotation(new ExecutableAnnotation 6239.WithAnnotation(new ExecutableAnnotation 6291.WithAnnotation(new ExecutableAnnotation 6335.WithAnnotation(new ExecutableAnnotation 6768.WithAnnotation(new ExecutableAnnotation 6883.WithAnnotation(new ExecutableAnnotation 6943.WithAnnotation(new ExecutableAnnotation 6986.WithAnnotation(new ExecutableAnnotation 7335.WithAnnotation(new TestFileBasedProject(projectPath)); 7543.WithAnnotation(new ExecutableAnnotation 7847.WithAnnotation(new TestProjectWithLaunchSettings()) 7848.WithAnnotation(new LaunchProfileAnnotation("http")) 7912.WithAnnotation(new TestProjectWithLaunchSettings()) 7942.WithAnnotation(new TestProjectWithLaunchSettings()) 7975.WithAnnotation(new TestProjectWithLaunchSettings()) 8438.WithAnnotation(new TestProjectWithLaunchSettings()) 8473.WithAnnotation(new TestProjectWithLaunchSettings()) 8541.WithAnnotation(new TestProjectWithLaunchSettings()) 8791.WithAnnotation(new TestProjectWithLaunchSettings()) 8792.WithAnnotation(new LaunchProfileAnnotation("http"))
DebugSupportExtensionsTests.cs (1)
405.WithAnnotation(new ForceProcessExecutionAnnotation());
ExecutionConfigurationGathererTests.cs (6)
678.WithAnnotation(new HttpsCertificateAnnotation { Certificate = cert }) 708.WithAnnotation(new HttpsCertificateAnnotation 739.WithAnnotation(new HttpsCertificateAnnotation 785.WithAnnotation(new HttpsCertificateAnnotation { Certificate = cert }) 824.WithAnnotation(new HttpsCertificateAnnotation { Certificate = cert }) 825.WithAnnotation(new HttpsCertificateConfigurationCallbackAnnotation(ctx =>
ExpressionResolverTests.cs (2)
210.WithAnnotation(nonHostEndpoint); 264.WithAnnotation(endpoint);
ManifestGenerationTests.cs (9)
561.WithAnnotation(new ContainerFilesSourceAnnotation { SourcePath = "/app/dist" }); 565.WithAnnotation(new ContainerFilesDestinationAnnotation 603.WithAnnotation(new ContainerFilesSourceAnnotation { SourcePath = "/app/dist" }) 604.WithAnnotation(new ContainerFilesSourceAnnotation { SourcePath = "/app/assets" }); 608.WithAnnotation(new ContainerFilesDestinationAnnotation 647.WithAnnotation(new ContainerFilesSourceAnnotation { SourcePath = "/app/dist" }); 650.WithAnnotation(new ContainerFilesSourceAnnotation { SourcePath = "/app/assets" }); 654.WithAnnotation(new ContainerFilesDestinationAnnotation 659.WithAnnotation(new ContainerFilesDestinationAnnotation
ProjectResourceBuilderExtensionTests.cs (4)
103.WithAnnotation<IProjectMetadata>(new TestProject()) 115.WithAnnotation<IProjectMetadata>(new TestProject()) 116.WithAnnotation<IProjectMetadata>(new OverrideTestProject()); 134project.WithAnnotation<IProjectMetadata>(new OverrideTestProject(), mutationBehavior);
ProjectResourceTests.cs (2)
884.WithAnnotation(new ContainerFilesSourceAnnotation { SourcePath = "/app/dist" }); 917.WithAnnotation(new ContainerFilesSourceAnnotation { SourcePath = "/app/dist" });
Publishing\ResourceContainerImageManagerTests.cs (9)
655.WithAnnotation(new TestProjectMetadata(Path.Combine(workspace.WorkspaceRoot.FullName, "missing.csproj"))) 693.WithAnnotation(new TestProjectMetadata(Path.Combine(workspace.WorkspaceRoot.FullName, "missing.csproj"))) 1053.WithAnnotation(new ContainerBuildOptionsCallbackAnnotation(ctx => 1059.WithAnnotation(new ContainerBuildOptionsCallbackAnnotation(ctx => 1090.WithAnnotation(new ContainerBuildOptionsCallbackAnnotation(ctx => 1097.WithAnnotation(new ContainerBuildOptionsCallbackAnnotation(ctx => 1228.WithAnnotation(dockerfileBuildAnnotation); 1239container.WithAnnotation(defaultContainerBuildOptions); 1265.WithAnnotation(new ContainerBuildOptionsCallbackAnnotation(async ctx =>
ResourceCommandServiceTests.cs (10)
54custom.WithAnnotation(new DcpInstancesAnnotation([ 95custom.WithAnnotation(new DcpInstancesAnnotation([ 114custom.WithAnnotation(new DcpInstancesAnnotation([ 118custom.WithAnnotation(new ReplicaAnnotation(2)); 139custom.WithAnnotation(new DcpInstancesAnnotation([ 176custom.WithAnnotation(new DcpInstancesAnnotation([ 216custom.WithAnnotation(new DcpInstancesAnnotation([ 281custom.WithAnnotation(new DcpInstancesAnnotation([ 312custom.WithAnnotation(new DcpInstancesAnnotation([ 1611custom.WithAnnotation(new DcpInstancesAnnotation([
ResourceDependencyTests.cs (1)
84.WithAnnotation(nonHostEndpoint);
ResourceExtensionsTests.cs (17)
53.WithAnnotation(new AnotherDummyAnnotation()); 65.WithAnnotation(new DummyAnnotation()); 77.WithAnnotation(new DummyAnnotation()); 100.WithAnnotation(new AnotherDummyAnnotation()); 112.WithAnnotation(new AnotherDummyAnnotation()); 115.WithAnnotation(new AnotherDummyAnnotation()); 127.WithAnnotation(new DummyAnnotation()); 141.WithAnnotation(new DummyAnnotation()); 144.WithAnnotation(new DummyAnnotation()); 156.WithAnnotation(new DummyAnnotation()); 159.WithAnnotation(new DummyAnnotation()); 162.WithAnnotation(new DummyAnnotation()); 178.WithAnnotation(new DeploymentTargetAnnotation(deploymentTarget.Resource) 613resource.WithAnnotation(new DcpInstancesAnnotation([])); 627.WithAnnotation(new DcpInstancesAnnotation([ 650resource.WithAnnotation(new DcpInstancesAnnotation([])); 663.WithAnnotation(new DcpInstancesAnnotation([
Utils\WithAnnotationTests.cs (2)
28.WithAnnotation<DummyAnnotation>(new DummyAnnotation()) 29.WithAnnotation<DummyAnnotation>(new DummyAnnotation());
WaitForTests.cs (4)
638.WithAnnotation(new ReplicaAnnotation(2)) 639.WithAnnotation(new DcpInstancesAnnotation([ 691.WithAnnotation(new ReplicaAnnotation(2)) 692.WithAnnotation(new DcpInstancesAnnotation([
WithTerminalTests.cs (6)
238.WithAnnotation(new ReplicaAnnotation(2)); 256.WithAnnotation(new ReplicaAnnotation(2)); 1077.WithAnnotation(new ReplicaAnnotation(3)); 1109resource.WithAnnotation(new ReplicaAnnotation(3)); 1128.WithAnnotation(new ReplicaAnnotation(2)); 1201.WithAnnotation(new ReplicaAnnotation(2));
Aspire.Hosting.Valkey (1)
ValkeyBuilderExtensions.cs (1)
296return builder.WithAnnotation(
Aspire.Hosting.Yarp.Tests (10)
AddYarpTests.cs (10)
255.WithAnnotation(new ContainerFilesSourceAnnotation { SourcePath = "/app/dist" }); 273.WithAnnotation(new ContainerFilesSourceAnnotation { SourcePath = "/app/dist" }); 300.WithAnnotation(new ContainerFilesSourceAnnotation { SourcePath = "/app/dist" }); 330.WithAnnotation(new ContainerFilesSourceAnnotation { SourcePath = "/app/dist" }); 362.WithAnnotation(new ContainerFilesSourceAnnotation { SourcePath = "/app/dist" }) 363.WithAnnotation(new ContainerFilesSourceAnnotation { SourcePath = "/app/assets" }); 393.WithAnnotation(new ContainerFilesSourceAnnotation { SourcePath = "/app/dist" }) 394.WithAnnotation(new ContainerFilesSourceAnnotation { SourcePath = "/app/assets" }); 398.WithAnnotation(new ContainerFilesSourceAnnotation { SourcePath = "/app/dist2" }) 399.WithAnnotation(new ContainerFilesSourceAnnotation { SourcePath = "/app/assets2" });
ProjectResourceExtensions.AppHost (2)
AppHost.cs (2)
58.WithAnnotation(new FakeProjectMetadata(projectPath)) 59.WithAnnotation(new LaunchProfileAnnotation(launchProfileName));