6 references to WithDataVolume
Aspire.Hosting.Native.Core.Tests (3)
NativeBuilderAuthoringTests.cs (3)
126
var cache = builder.AddContainer(new RedisContainerResource("cache")).
WithDataVolume
();
178
Assert.Throws<InvalidOperationException>(() => cache.
WithDataVolume
("after-build"));
220
var cache = NativeIntegrations.Redis.Authoring.RedisBuilderExtensions.AddRedis(builder, "cache").
WithDataVolume
("owned-volume");
NativeIntegrations.Redis.AppHost.Sample (1)
Program.cs (1)
9
var cache = builder.AddRedis("cache").
WithDataVolume
();
NativeIntegrations.Redis.Validation (2)
Program.cs (1)
11
var cache = builder.AddRedis("cache", password).
WithDataVolume
(builder.Configuration["data-volume"]);
RedisPersistenceValidation.cs (1)
39
var cache = builder.AddRedis("cache", credential).
WithDataVolume
(builder.Configuration["data-volume"]);