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