1 implementation of WithAnnotation
Aspire.Hosting (1)
DistributedApplicationResourceBuilder.cs (1)
14public IResourceBuilder<T> WithAnnotation<TAnnotation>(TAnnotation annotation, ResourceAnnotationMutationBehavior behavior = ResourceAnnotationMutationBehavior.Append) where TAnnotation : IResourceAnnotation
263 references to WithAnnotation
Aspire.Hosting (79)
ApplicationModel\IResourceBuilder.cs (1)
29IResourceBuilder<T> WithAnnotation<TAnnotation>(ResourceAnnotationMutationBehavior behavior = ResourceAnnotationMutationBehavior.Append) where TAnnotation : IResourceAnnotation, new() => WithAnnotation(new TAnnotation(), behavior);
ApplicationModel\ResourceExtensions.cs (2)
996return builder.WithAnnotation(new DeploymentImageTagCallbackAnnotation(callback)); 1012return builder.WithAnnotation(new DeploymentImageTagCallbackAnnotation(callback));
ContainerResourceBuilderExtensions.cs (19)
31return builder.WithAnnotation(new PipelineStepAnnotation((factoryContext) => 133return builder.WithAnnotation(annotation); 173return builder.WithAnnotation(annotation); 231return builder.WithAnnotation(annotation); 443return builder.WithAnnotation(annotation); 470return builder.WithAnnotation(new ContainerLifetimeAnnotation { Lifetime = lifetime }, ResourceAnnotationMutationBehavior.Replace); 484return builder.WithAnnotation(new ContainerImagePullPolicyAnnotation { ImagePullPolicy = pullPolicy }, ResourceAnnotationMutationBehavior.Replace); 562return builder.WithAnnotation(annotation, ResourceAnnotationMutationBehavior.Replace) 566return builder.WithAnnotation(annotation, ResourceAnnotationMutationBehavior.Replace) 682return builder.WithAnnotation(annotation, ResourceAnnotationMutationBehavior.Replace) 686return builder.WithAnnotation(annotation, ResourceAnnotationMutationBehavior.Replace) 903return builder.WithAnnotation(new ContainerNameAnnotation { Name = name }, ResourceAnnotationMutationBehavior.Replace); 1067return builder.WithAnnotation(new ContainerCertificatePathsAnnotation 1132return builder.WithAnnotation(annotation, ResourceAnnotationMutationBehavior.Append); 1203return builder.WithAnnotation(annotation, ResourceAnnotationMutationBehavior.Append); 1245return builder.WithAnnotation(annotation, ResourceAnnotationMutationBehavior.Append); 1273builder.WithAnnotation(new ProxySupportAnnotation { ProxyEnabled = proxyEnabled }, ResourceAnnotationMutationBehavior.Replace); 1338builder.WithAnnotation(callbackAnnotation); 1468return builder.WithAnnotation(new DockerfileBaseImageAnnotation
CustomResourceExtensions.cs (1)
26return builder.WithAnnotation(new ResourceSnapshotAnnotation(initialSnapshot), ResourceAnnotationMutationBehavior.Replace);
Pipelines\PipelineStepFactoryExtensions.cs (6)
29return builder.WithAnnotation(new PipelineStepAnnotation(factory)); 46return builder.WithAnnotation(new PipelineStepAnnotation(factory)); 63return builder.WithAnnotation(new PipelineStepAnnotation(factory)); 80return builder.WithAnnotation(new PipelineStepAnnotation(factory)); 98return builder.WithAnnotation(new PipelineConfigurationAnnotation(callback)); 116return builder.WithAnnotation(new PipelineConfigurationAnnotation(callback));
ProjectResourceBuilderExtensions.cs (7)
244.WithAnnotation(new TProject()) 288.WithAnnotation(new ProjectMetadata(projectPath)) 369.WithAnnotation(projectMetadata) 462builder.WithAnnotation(new ExcludeLaunchProfileAnnotation()); 466builder.WithAnnotation(new LaunchProfileAnnotation(options.LaunchProfileName)); 474builder.WithAnnotation(new DefaultLaunchProfileAnnotation(appHostDefaultLaunchProfileName)); 738builder.WithAnnotation(new ReplicaAnnotation(replicas));
ResourceBuilderExtensions.cs (43)
39return builder.WithAnnotation(new EnvironmentAnnotation(name, value ?? string.Empty)); 103return builder.WithAnnotation(new EnvironmentCallbackAnnotation(name, callback)); 118return builder.WithAnnotation(new EnvironmentCallbackAnnotation(callback)); 133return builder.WithAnnotation(new EnvironmentCallbackAnnotation(callback)); 340return builder.WithAnnotation(new CommandLineArgsCallbackAnnotation(callback)); 356return builder.WithAnnotation(new ManifestPublishingCallbackAnnotation(callback), ResourceAnnotationMutationBehavior.Replace); 372return builder.WithAnnotation(new ManifestPublishingCallbackAnnotation(callback), ResourceAnnotationMutationBehavior.Replace); 388return builder.WithAnnotation(new ConnectionStringRedirectAnnotation(resource), ResourceAnnotationMutationBehavior.Replace); 445return builder.WithAnnotation(new ReferenceEnvironmentInjectionAnnotation(flags)); 727builder.WithAnnotation(endpointReferenceAnnotation); 858builder.WithAnnotation(new EnvironmentCallbackAnnotation(context => 864return builder.WithAnnotation(annotation); 994return builder.WithAnnotation(new Http2ServiceAnnotation()); 1050return builder.WithAnnotation(new ResourceUrlsCallbackAnnotation(callback)); 1073return builder.WithAnnotation(new ResourceUrlsCallbackAnnotation(callback)); 1128return builder.WithAnnotation(new ResourceUrlAnnotation { Url = url, DisplayText = displayText }); 1171return builder.WithAnnotation(new ResourceUrlsCallbackAnnotation(async c => 1307return builder.WithAnnotation(new ContainerFilesDestinationAnnotation() 1329return builder.WithAnnotation(new ContainerFilesSourceAnnotation() 1364return builder.WithAnnotation(ManifestPublishingCallbackAnnotation.Ignore); 1472return builder.WithAnnotation(new WaitAnnotation(dependency.Resource, WaitType.WaitUntilHealthy) { WaitBehavior = waitBehavior }); 1586return builder.WithAnnotation(new WaitAnnotation(dependency.Resource, WaitType.WaitUntilStarted) { WaitBehavior = waitBehavior }); 1612return builder.WithAnnotation(new ExplicitStartupAnnotation()); 1658return builder.WithAnnotation(new WaitAnnotation(dependency.Resource, WaitType.WaitForCompletion, exitCode)); 1707builder.WithAnnotation(new HealthCheckAnnotation(key)); 1912return builder.WithAnnotation(new ResourceCommandAnnotation(name, displayName, commandOptions.UpdateState ?? (c => ResourceCommandState.Enabled), executeCommand, commandOptions.Description, commandOptions.Parameter, commandOptions.ConfirmationMessage, commandOptions.IconName, commandOptions.IconVariant, commandOptions.IsHighlighted)); 1977return builder.WithAnnotation(new ResourceCommandAnnotation(name, displayName, updateState ?? (c => ResourceCommandState.Enabled), executeCommand, displayDescription, parameter, confirmationMessage, iconName, iconVariant, isHighlighted)); 2274return builder.WithAnnotation(annotation, ResourceAnnotationMutationBehavior.Replace); 2323return builder.WithAnnotation(annotation, ResourceAnnotationMutationBehavior.Replace); 2371return builder.WithAnnotation(annotation, ResourceAnnotationMutationBehavior.Replace); 2406return builder.WithAnnotation(new CertificateTrustConfigurationCallbackAnnotation(callback), ResourceAnnotationMutationBehavior.Replace); 2438return builder.WithAnnotation(annotation, ResourceAnnotationMutationBehavior.Replace); 2462return builder.WithAnnotation(annotation, ResourceAnnotationMutationBehavior.Replace); 2483return builder.WithAnnotation(annotation, ResourceAnnotationMutationBehavior.Replace); 2502return builder.WithAnnotation(annotation, ResourceAnnotationMutationBehavior.Append); 2588return builder.WithAnnotation(new ResourceRelationshipAnnotation(resource, type)); 2605return builder.WithAnnotation(new ResourceRelationshipAnnotation(resource, KnownRelationshipTypes.Reference)); 2681return builder.WithAnnotation(new ResourceRelationshipAnnotation(resourceBuilder.Resource, KnownRelationshipTypes.Reference)); 2841return builder.WithAnnotation(new ResourceIconAnnotation(iconName, iconVariant)); 2859builder.WithAnnotation(new ComputeEnvironmentAnnotation(computeEnvironmentResource.Resource)); 2894return builder.WithAnnotation(SupportsDebuggingAnnotation.Create(launchConfigurationType, launchConfigurationProducer)); 3014return builder.WithAnnotation(probeAnnotation); 3027return builder.WithAnnotation(new ExcludeFromMcpAnnotation());
Aspire.Hosting.Azure (6)
AzureUserAssignedIdentityExtensions.cs (1)
67builder.WithAnnotation(new AppIdentityAnnotation(identityResourceBuilder.Resource));
ExistingAzureResourceExtensions.cs (5)
42builder.WithAnnotation(new ExistingAzureResourceAnnotation(nameParameter.Resource, resourceGroupParameter?.Resource)); 63builder.WithAnnotation(new ExistingAzureResourceAnnotation(name, resourceGroup)); 84builder.WithAnnotation(new ExistingAzureResourceAnnotation(nameParameter.Resource, resourceGroupParameter?.Resource)); 105builder.WithAnnotation(new ExistingAzureResourceAnnotation(name, resourceGroup)); 124builder.WithAnnotation(new ExistingAzureResourceAnnotation(nameParameter.Resource, resourceGroupParameter?.Resource));
Aspire.Hosting.Azure.AIFoundry (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.AppConfiguration (3)
AzureAppConfigurationExtensions.cs (1)
82.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 (5)
AzureContainerAppContainerExtensions.cs (1)
47container.WithAnnotation(new AzureContainerAppCustomizationAnnotation(configure));
AzureContainerAppExecutableExtensions.cs (1)
47return executable.WithAnnotation(new AzureContainerAppCustomizationAnnotation(configure));
AzureContainerAppExtensions.cs (1)
378builder.WithAnnotation(new AzureLogAnalyticsWorkspaceReferenceAnnotation(workspaceBuilder.Resource));
AzureContainerAppProjectExtensions.cs (1)
47project.WithAnnotation(new AzureContainerAppCustomizationAnnotation(configure));
ContainerAppExtensions.cs (1)
165resource.WithAnnotation(new AzureContainerAppJobCustomizationAnnotation(configure));
Aspire.Hosting.Azure.ApplicationInsights (1)
AzureApplicationInsightsExtensions.cs (1)
131return builder.WithAnnotation(new LogAnalyticsWorkspaceReferenceAnnotation(workspaceId));
Aspire.Hosting.Azure.AppService (1)
AzureAppServiceComputeResourceExtensions.cs (1)
45return builder.WithAnnotation(new AzureAppServiceWebsiteCustomizationAnnotation(configure));
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)
61.WithAnnotation(new DefaultRoleAssignmentsAnnotation(new HashSet<RoleDefinition>())); 79builder.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)
40.WithAnnotation(new DefaultRoleAssignmentsAnnotation(new HashSet<RoleDefinition>())); 82builder.WithAnnotation(new EmulatorResourceAnnotation()); 86.WithAnnotation(new ContainerImageAnnotation
Aspire.Hosting.Azure.EventHubs (7)
AzureEventHubsExtensions.cs (5)
223builder.WithAnnotation(new EmulatorResourceAnnotation()); 229.WithAnnotation(new ContainerImageAnnotation 261builder.WithAnnotation(new EnvironmentCallbackAnnotation((EnvironmentCallbackContext context) => 395return builder.WithAnnotation(new ConfigFileAnnotation(path), ResourceAnnotationMutationBehavior.Replace); 409builder.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.Functions (5)
AzureFunctionsProjectResourceExtensions.cs (3)
137.WithAnnotation(projectMetadata) 138.WithAnnotation(new AzureFunctionsAnnotation()); 146functionsBuilder.WithAnnotation(new DefaultLaunchProfileAnnotation(appHostDefaultLaunchProfileName));
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.Kusto (6)
AzureKustoBuilderExtensions.cs (4)
96.WithAnnotation(new DefaultRoleAssignmentsAnnotation(new HashSet<RoleDefinition>())); 163builder.WithAnnotation(new EmulatorResourceAnnotation()); 172.WithAnnotation(new ContainerImageAnnotation 201builder.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)
100builder.WithAnnotation(new ContainerNameAnnotation() { Name = "custom-kusto-emulator" });
Aspire.Hosting.Azure.PostgreSQL (2)
AzurePostgresExtensions.cs (2)
79builder.WithAnnotation(new AzureBicepResourceAnnotation(resource)); 145.WithAnnotation(new DefaultRoleAssignmentsAnnotation(new HashSet<RoleDefinition>()));
Aspire.Hosting.Azure.Redis (3)
AzureRedisEnterpriseExtensions.cs (1)
58.WithAnnotation(new DefaultRoleAssignmentsAnnotation(new HashSet<RoleDefinition>()));
AzureRedisExtensions.cs (2)
66builder.WithAnnotation(new AzureBicepResourceAnnotation(resource)); 125.WithAnnotation(new DefaultRoleAssignmentsAnnotation(new HashSet<RoleDefinition>()));
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)
351builder.WithAnnotation(new EmulatorResourceAnnotation()); 361.WithAnnotation(new ContainerImageAnnotation 382builder.WithAnnotation(new EnvironmentCallbackAnnotation((EnvironmentCallbackContext context) => 477return builder.WithAnnotation(new ConfigFileAnnotation(path), ResourceAnnotationMutationBehavior.Replace); 507builder.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)
126builder.WithAnnotation(new EmulatorResourceAnnotation()); 130.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 (2)
AzureSqlExtensions.cs (2)
38builder.WithAnnotation(new AzureBicepResourceAnnotation(resource)); 90.WithAnnotation(new DefaultRoleAssignmentsAnnotation(new HashSet<RoleDefinition>()));
Aspire.Hosting.Azure.Storage (4)
AzureStorageExtensions.cs (2)
159builder.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.Tests (18)
AzurePostgresExtensionsTests.cs (6)
263postgres.WithAnnotation(new Dummy1Annotation()); 264db?.WithAnnotation(new Dummy1Annotation()); 269c.WithAnnotation(new Dummy2Annotation()); 279db!.WithAnnotation(new Dummy1Annotation()); 285postgres.WithAnnotation(new Dummy1Annotation()); 286db!.WithAnnotation(new Dummy1Annotation());
AzureRedisEnterpriseExtensionsTests.cs (3)
122cache.WithAnnotation(new Dummy1Annotation()); 127c.WithAnnotation(new Dummy2Annotation()); 132cache.WithAnnotation(new Dummy1Annotation());
AzureRedisExtensionsTests.cs (3)
163cache.WithAnnotation(new Dummy1Annotation()); 168c.WithAnnotation(new Dummy2Annotation()); 173cache.WithAnnotation(new Dummy1Annotation());
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());
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.Docker (1)
DockerComposeServiceExtensions.cs (1)
47return builder.WithAnnotation(new DockerComposeServiceCustomizationAnnotation(configure));
Aspire.Hosting.Garnet (1)
GarnetBuilderExtensions.cs (1)
286return builder.WithAnnotation(new PersistenceAnnotation(interval), ResourceAnnotationMutationBehavior.Replace);
Aspire.Hosting.JavaScript (10)
JavaScriptHostingExtensions.cs (10)
376.WithAnnotation(new ContainerFilesSourceAnnotation() { SourcePath = "/app/dist" }) 468.WithAnnotation(new JavaScriptPackageManagerAnnotation("npm", runScriptCommand: "run", cacheMount: "/root/.npm") 472.WithAnnotation(new JavaScriptInstallCommandAnnotation([installCommand, .. installArgs ?? []])); 522.WithAnnotation(packageManager) 523.WithAnnotation(new JavaScriptInstallCommandAnnotation(["install", .. installArgs])); 574.WithAnnotation(new JavaScriptPackageManagerAnnotation("pnpm", runScriptCommand: "run", cacheMount: "/pnpm/store") 580.WithAnnotation(new JavaScriptInstallCommandAnnotation(["install", .. installArgs])); 605return resource.WithAnnotation(new JavaScriptBuildScriptAnnotation(scriptName, args)); 623return resource.WithAnnotation(new JavaScriptRunScriptAnnotation(scriptName, args)); 688resource.WithAnnotation(new JavaScriptPackageInstallerAnnotation(installer));
Aspire.Hosting.JavaScript.Tests (3)
AddNodeAppTests.cs (3)
165.WithAnnotation(new JavaScriptPackageManagerAnnotation("mypm", runScriptCommand: null, cacheMount: null) 169.WithAnnotation(new JavaScriptInstallCommandAnnotation(["myinstall"])) 346.WithAnnotation(new ContainerFilesSourceAnnotation() { SourcePath = "/app/dist" });
Aspire.Hosting.Kubernetes (1)
KubernetesServiceExtensions.cs (1)
46return builder.WithAnnotation(new KubernetesServiceCustomizationAnnotation(configure));
Aspire.Hosting.Maui (17)
MauiAndroidExtensions.cs (6)
151.WithAnnotation(new MauiProjectMetadata(projectPath)) 152.WithAnnotation(new MauiAndroidEnvironmentAnnotation()) // Enable environment variable support via targets file 153.WithAnnotation(new ExecutableAnnotation 336.WithAnnotation(new MauiProjectMetadata(projectPath)) 337.WithAnnotation(new MauiAndroidEnvironmentAnnotation()) // Enable environment variable support via targets file 338.WithAnnotation(new ExecutableAnnotation
MauiiOSExtensions.cs (6)
158.WithAnnotation(new MauiProjectMetadata(projectPath)) 159.WithAnnotation(new MauiiOSEnvironmentAnnotation()) // Enable environment variable support via targets file 160.WithAnnotation(new ExecutableAnnotation 344.WithAnnotation(new MauiProjectMetadata(projectPath)) 345.WithAnnotation(new MauiiOSEnvironmentAnnotation()) // Enable environment variable support via targets file 346.WithAnnotation(new ExecutableAnnotation
MauiMacCatalystExtensions.cs (2)
86.WithAnnotation(new MauiProjectMetadata(projectPath)) 87.WithAnnotation(new ExecutableAnnotation
MauiPlatformHelper.cs (1)
107resourceBuilder.WithAnnotation(new UnsupportedPlatformAnnotation(reason), ResourceAnnotationMutationBehavior.Append);
MauiWindowsExtensions.cs (2)
86.WithAnnotation(new MauiProjectMetadata(projectPath)) 87.WithAnnotation(new ExecutableAnnotation
Aspire.Hosting.MySql (1)
MySqlBuilderExtensions.cs (1)
186builder.WithAnnotation(new MySqlCreateDatabaseScriptAnnotation(script));
Aspire.Hosting.PostgreSQL (1)
PostgresBuilderExtensions.cs (1)
452builder.WithAnnotation(new PostgresCreateDatabaseScriptAnnotation(script));
Aspire.Hosting.Python (9)
PythonAppResourceBuilderExtensions.cs (9)
384.WithAnnotation(new PythonEntrypointAnnotation 918builder.WithAnnotation(new PythonExecutableDebuggableAnnotation()); 1065builder.WithAnnotation(new PythonEntrypointAnnotation 1174.WithAnnotation(new PythonPackageManagerAnnotation(virtualEnvironment.GetExecutable("pip")), ResourceAnnotationMutationBehavior.Replace) 1175.WithAnnotation(new PythonInstallCommandAnnotation([.. baseInstallArgs, .. installArgs ?? []]), ResourceAnnotationMutationBehavior.Replace); 1244.WithAnnotation(new PythonPackageManagerAnnotation("uv"), ResourceAnnotationMutationBehavior.Replace) 1245.WithAnnotation(new PythonInstallCommandAnnotation(args), ResourceAnnotationMutationBehavior.Replace); 1362builder.WithAnnotation(new PythonPackageInstallerAnnotation(installer)); 1529builder.WithAnnotation(existing);
Aspire.Hosting.Python.Tests (1)
AddUvicornAppTests.cs (1)
78.WithAnnotation(new ContainerFilesSourceAnnotation() { SourcePath = "/app/dist" });
Aspire.Hosting.Redis (1)
RedisBuilderExtensions.cs (1)
531return builder.WithAnnotation(
Aspire.Hosting.SqlServer (1)
SqlServerBuilderExtensions.cs (1)
208builder.WithAnnotation(new SqlServerCreateDatabaseScriptAnnotation(script));
Aspire.Hosting.Tests (34)
Backchannel\Exec\ProjectResourceExecTests.cs (1)
136.WithAnnotation<IProjectMetadata>(new ProjectMetadata(Directory.GetCurrentDirectory()));
ManifestGenerationTests.cs (9)
566.WithAnnotation(new ContainerFilesSourceAnnotation { SourcePath = "/app/dist" }); 570.WithAnnotation(new ContainerFilesDestinationAnnotation 608.WithAnnotation(new ContainerFilesSourceAnnotation { SourcePath = "/app/dist" }) 609.WithAnnotation(new ContainerFilesSourceAnnotation { SourcePath = "/app/assets" }); 613.WithAnnotation(new ContainerFilesDestinationAnnotation 652.WithAnnotation(new ContainerFilesSourceAnnotation { SourcePath = "/app/dist" }); 655.WithAnnotation(new ContainerFilesSourceAnnotation { SourcePath = "/app/assets" }); 659.WithAnnotation(new ContainerFilesDestinationAnnotation 664.WithAnnotation(new ContainerFilesDestinationAnnotation
ProjectResourceTests.cs (2)
784.WithAnnotation(new ContainerFilesSourceAnnotation { SourcePath = "/app/dist" }); 817.WithAnnotation(new ContainerFilesSourceAnnotation { SourcePath = "/app/dist" });
ResourceCommandServiceTests.cs (2)
39custom.WithAnnotation(new DcpInstancesAnnotation([ 83custom.WithAnnotation(new DcpInstancesAnnotation([
ResourceExtensionsTests.cs (14)
30.WithAnnotation(new AnotherDummyAnnotation()); 42.WithAnnotation(new DummyAnnotation()); 54.WithAnnotation(new DummyAnnotation()); 77.WithAnnotation(new AnotherDummyAnnotation()); 89.WithAnnotation(new AnotherDummyAnnotation()); 92.WithAnnotation(new AnotherDummyAnnotation()); 104.WithAnnotation(new DummyAnnotation()); 118.WithAnnotation(new DummyAnnotation()); 121.WithAnnotation(new DummyAnnotation()); 133.WithAnnotation(new DummyAnnotation()); 136.WithAnnotation(new DummyAnnotation()); 139.WithAnnotation(new DummyAnnotation()); 306.WithAnnotation(new DeploymentTargetAnnotation(compute1.Resource) { ComputeEnvironment = compute1.Resource }) 307.WithAnnotation(new DeploymentTargetAnnotation(compute2.Resource) { ComputeEnvironment = compute2.Resource });
Utils\WithAnnotationTests.cs (2)
27.WithAnnotation<DummyAnnotation>(new DummyAnnotation()) 28.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([
Aspire.Hosting.Valkey (1)
ValkeyBuilderExtensions.cs (1)
281return builder.WithAnnotation(
Aspire.Hosting.Yarp.Tests (10)
AddYarpTests.cs (10)
231.WithAnnotation(new ContainerFilesSourceAnnotation { SourcePath = "/app/dist" }); 249.WithAnnotation(new ContainerFilesSourceAnnotation { SourcePath = "/app/dist" }); 276.WithAnnotation(new ContainerFilesSourceAnnotation { SourcePath = "/app/dist" }); 306.WithAnnotation(new ContainerFilesSourceAnnotation { SourcePath = "/app/dist" }); 338.WithAnnotation(new ContainerFilesSourceAnnotation { SourcePath = "/app/dist" }) 339.WithAnnotation(new ContainerFilesSourceAnnotation { SourcePath = "/app/assets" }); 369.WithAnnotation(new ContainerFilesSourceAnnotation { SourcePath = "/app/dist" }) 370.WithAnnotation(new ContainerFilesSourceAnnotation { SourcePath = "/app/assets" }); 374.WithAnnotation(new ContainerFilesSourceAnnotation { SourcePath = "/app/dist2" }) 375.WithAnnotation(new ContainerFilesSourceAnnotation { SourcePath = "/app/assets2" });