1 write to Source
Aspire.Hosting (1)
ApplicationModel\ContainerMountAnnotation.cs (1)
42Source = source;
33 references to Source
Aspire.Hosting (4)
Dcp\ApplicationExecutor.cs (1)
1470Source = mount.Source,
Publishing\ManifestPublishingContext.cs (3)
600var manifestRelativeSource = GetManifestRelativePath(bindMount.Source); 626if (volume.Source is not null) 629Writer.WriteStringValue(volume.Source);
Aspire.Hosting.Azure.Tests (8)
AzureEventHubsExtensionsTests.cs (4)
109Assert.Equal(Path.Combine(builder.AppHostDirectory, ".eventhubs", "eh"), volumeAnnotation.Source); 126Assert.Equal(Path.Combine(builder.AppHostDirectory, "mydata"), volumeAnnotation.Source); 143Assert.Equal($"{builder.GetVolumePrefix()}-eh-data", volumeAnnotation.Source); 160Assert.Equal("mydata", volumeAnnotation.Source);
AzureResourceExtensionsTests.cs (4)
34Assert.Equal(Path.Combine(builder.AppHostDirectory, ".azurite", "storage"), volumeAnnotation.Source); 60Assert.Equal(Path.Combine(builder.AppHostDirectory, "mydata"), volumeAnnotation.Source); 86Assert.Equal($"{builder.GetVolumePrefix()}-storage-data", volumeAnnotation.Source); 112Assert.Equal("mydata", volumeAnnotation.Source);
Aspire.Hosting.Containers.Tests (1)
ContainerResourceTests.cs (1)
177Assert.Equal(Path.Combine(basePath, "source"), mountAnnotation.Source);
Aspire.Hosting.Garnet.Tests (2)
AddGarnetTests.cs (2)
132Assert.Equal($"{builder.GetVolumePrefix()}-myGarnet-data", volumeAnnotation.Source); 157Assert.Equal(Path.Combine(builder.AppHostDirectory, "mygarnetdata"), volumeAnnotation.Source);
Aspire.Hosting.Kafka.Tests (2)
AddKafkaTests.cs (2)
125Assert.Equal("kafka-data", volumeAnnotation.Source); 143Assert.Equal(Path.Combine(appBuilder.AppHostDirectory, "kafka-data"), volumeAnnotation.Source);
Aspire.Hosting.Keycloak.Tests (3)
KeycloakResourceBuilderTests.cs (3)
55Assert.Equal($"{builder.GetVolumePrefix()}-{resourceName}-data", volumeAnnotation.Source); 70Assert.Equal(Path.Combine(builder.AppHostDirectory, "mydata"), volumeAnnotation.Source); 101Assert.Equal(tempDirectory, containerAnnotation.Source);
Aspire.Hosting.MySql.Tests (2)
AddMySqlTests.cs (2)
263Assert.True(File.Exists(volume.Source)); // File should exist, but will be empty. 286using var stream = File.OpenRead(volume.Source!);
Aspire.Hosting.Nats.Tests (1)
AddNatsTests.cs (1)
59Assert.Equal(path, mountAnnotation.Source);
Aspire.Hosting.PostgreSQL.Tests (3)
AddPostgresTests.cs (3)
383Assert.True(File.Exists(volume.Source)); // File should exist, but will be empty. 470using var stream = File.OpenRead(volume.Source!); 518var bookMarkFiles = Directory.GetFiles(volume.Source!).OrderBy(f => f).ToArray();
Aspire.Hosting.Redis.Tests (2)
AddRedisTests.cs (2)
271Assert.Equal($"{builder.GetVolumePrefix()}-myRedis-data", volumeAnnotation.Source); 296Assert.Equal(Path.Combine(builder.AppHostDirectory, "mydata"), volumeAnnotation.Source);
Aspire.Hosting.Valkey.Tests (2)
AddValkeyTests.cs (2)
132Assert.Equal($"{builder.GetVolumePrefix()}-myValkey-data", volumeAnnotation.Source); 157Assert.Equal(Path.Combine(builder.AppHostDirectory, "myValkeydata"), volumeAnnotation.Source);
Aspire.Playground.Tests (3)
Infrastructure\DistributedApplicationExtensions.cs (3)
54.Where(m => m.Type == ContainerMountType.Volume && !string.IsNullOrEmpty(m.Source)) 61var name = resourceVolume.Volume.Source!; 73var newName = renamedVolumes.TryGetValue(volume.Source!, out var randomName) ? randomName : null;