36 references to WithAnnotation
Aspire.Hosting (24)
ApplicationModel\IResourceBuilder.cs (1)
29IResourceBuilder<T> WithAnnotation<TAnnotation>(ResourceAnnotationMutationBehavior behavior = ResourceAnnotationMutationBehavior.Append) where TAnnotation : IResourceAnnotation, new() => WithAnnotation(new TAnnotation(), behavior);
ContainerResourceBuilderExtensions.cs (8)
86return builder.WithAnnotation(annotation); 126return builder.WithAnnotation(annotation); 182return builder.WithAnnotation(annotation); 377return builder.WithAnnotation(annotation); 402return builder.WithAnnotation(new ContainerLifetimeAnnotation { Lifetime = lifetime }, ResourceAnnotationMutationBehavior.Replace); 416return builder.WithAnnotation(new ContainerImagePullPolicyAnnotation { ImagePullPolicy = pullPolicy }, ResourceAnnotationMutationBehavior.Replace); 553return builder.WithAnnotation(new ContainerNameAnnotation { Name = name }, ResourceAnnotationMutationBehavior.Replace); 721builder.WithAnnotation(new ProxySupportAnnotation { ProxyEnabled = proxyEnabled }, ResourceAnnotationMutationBehavior.Replace);
ProjectResourceBuilderExtensions.cs (2)
239.WithAnnotation(new TProject()) 325builder.WithAnnotation(new ExcludeLaunchProfileAnnotation());
ResourceBuilderExtensions.cs (13)
35return builder.WithAnnotation(new EnvironmentAnnotation(name, value ?? string.Empty)); 95return builder.WithAnnotation(new EnvironmentCallbackAnnotation(name, callback)); 110return builder.WithAnnotation(new EnvironmentCallbackAnnotation(callback)); 125return builder.WithAnnotation(new EnvironmentCallbackAnnotation(callback)); 253return builder.WithAnnotation(new CommandLineArgsCallbackAnnotation(callback)); 269return builder.WithAnnotation(new ManifestPublishingCallbackAnnotation(callback), ResourceAnnotationMutationBehavior.Replace); 285return builder.WithAnnotation(new ManifestPublishingCallbackAnnotation(callback), ResourceAnnotationMutationBehavior.Replace); 565builder.WithAnnotation(new EnvironmentCallbackAnnotation(context => 571return builder.WithAnnotation(annotation); 685return builder.WithAnnotation(new Http2ServiceAnnotation()); 698return builder.WithAnnotation(ManifestPublishingCallbackAnnotation.Ignore); 842return builder.WithAnnotation(new ExplicitStartupAnnotation()); 1139return builder.WithAnnotation(new ResourceCommandAnnotation(name, displayName, updateState ?? (c => ResourceCommandState.Enabled), executeCommand, displayDescription, parameter, confirmationMessage, iconName, iconVariant, isHighlighted));
Aspire.Hosting.Azure.EventHubs (3)
AzureEventHubsExtensions.cs (3)
250builder.WithAnnotation(new EnvironmentCallbackAnnotation((EnvironmentCallbackContext context) => 343builder.WithAnnotation(new ContainerMountAnnotation( 454builder.WithAnnotation(new ConfigJsonAnnotation(configJson));
Aspire.Hosting.Azure.Functions (1)
AzureFunctionsProjectResourceExtensions.cs (1)
99.WithAnnotation(new TProject())
Aspire.Hosting.Azure.PostgreSQL (1)
AzurePostgresExtensions.cs (1)
79builder.WithAnnotation(new AzureBicepResourceAnnotation(resource));
Aspire.Hosting.Azure.Redis (1)
AzureRedisExtensions.cs (1)
66builder.WithAnnotation(new AzureBicepResourceAnnotation(resource));
Aspire.Hosting.Azure.ServiceBus (3)
AzureServiceBusExtensions.cs (3)
373builder.WithAnnotation(new EnvironmentCallbackAnnotation((EnvironmentCallbackContext context) => 453builder.WithAnnotation(new ContainerMountAnnotation( 562builder.WithAnnotation(new ConfigJsonAnnotation(configJson));
Aspire.Hosting.Azure.Sql (1)
AzureSqlExtensions.cs (1)
37builder.WithAnnotation(new AzureBicepResourceAnnotation(resource));
Aspire.Hosting.Tests (2)
Utils\WithAnnotationTests.cs (2)
29.WithAnnotation<DummyAnnotation>(new DummyAnnotation()) 30.WithAnnotation<DummyAnnotation>(new DummyAnnotation());