15 references to Replace
Aspire.Hosting (11)
ContainerResourceBuilderExtensions.cs (4)
316
return builder.WithAnnotation(new ContainerLifetimeAnnotation { Lifetime = lifetime }, ResourceAnnotationMutationBehavior.
Replace
);
386
return builder.WithAnnotation(annotation, ResourceAnnotationMutationBehavior.
Replace
)
451
return builder.WithAnnotation(new ContainerNameAnnotation { Name = name }, ResourceAnnotationMutationBehavior.
Replace
);
619
builder.WithAnnotation(new ProxySupportAnnotation { ProxyEnabled = proxyEnabled }, ResourceAnnotationMutationBehavior.
Replace
);
CustomResourceExtensions.cs (1)
26
return builder.WithAnnotation(new ResourceSnapshotAnnotation(initialSnapshot), ResourceAnnotationMutationBehavior.
Replace
);
DistributedApplicationResourceBuilder.cs (2)
20
if (behavior != ResourceAnnotationMutationBehavior.Append && behavior != ResourceAnnotationMutationBehavior.
Replace
)
27
if (behavior == ResourceAnnotationMutationBehavior.
Replace
&& Resource.Annotations.OfType<TAnnotation>().SingleOrDefault() is { } existingAnnotation)
ProjectResourceBuilderExtensions.cs (1)
602
builder.WithAnnotation<DisableForwardedHeadersAnnotation>(ResourceAnnotationMutationBehavior.
Replace
);
ResourceBuilderExtensions.cs (3)
269
return builder.WithAnnotation(new ManifestPublishingCallbackAnnotation(callback), ResourceAnnotationMutationBehavior.
Replace
);
285
return builder.WithAnnotation(new ManifestPublishingCallbackAnnotation(callback), ResourceAnnotationMutationBehavior.
Replace
);
301
return builder.WithAnnotation(new ConnectionStringRedirectAnnotation(resource), ResourceAnnotationMutationBehavior.
Replace
);
Aspire.Hosting.Garnet (1)
GarnetBuilderExtensions.cs (1)
201
}), ResourceAnnotationMutationBehavior.
Replace
);
Aspire.Hosting.Redis (1)
RedisBuilderExtensions.cs (1)
441
}), ResourceAnnotationMutationBehavior.
Replace
);
Aspire.Hosting.Tests (1)
Utils\WithAnnotationTests.cs (1)
46
redis.WithAnnotation<DummyAnnotation>(ResourceAnnotationMutationBehavior.
Replace
);
Aspire.Hosting.Valkey (1)
ValkeyBuilderExtensions.cs (1)
169
}), ResourceAnnotationMutationBehavior.
Replace
);