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