11 writes to Contents
Aspire.Hosting (2)
ApplicationModel\ContainerFileSystemCallbackAnnotation.cs (2)
343Contents = contents, 377Contents = contents,
Aspire.Hosting.Azure.EventHubs (1)
AzureEventHubsExtensions.cs (1)
358Contents = Encoding.UTF8.GetString(writeStream.ToArray()),
Aspire.Hosting.Azure.ServiceBus (1)
AzureServiceBusExtensions.cs (1)
508Contents = Encoding.UTF8.GetString(writeStream.ToArray()),
Aspire.Hosting.Docker.Tests (1)
DockerComposePublisherTests.cs (1)
47Contents = "hello world",
Aspire.Hosting.MongoDB (1)
MongoDBBuilderExtensions.cs (1)
606Contents = await keyValue.GetValueAsync(ct).ConfigureAwait(false),
Aspire.Hosting.PostgreSQL (2)
PostgresBuilderExtensions.cs (2)
275Contents = await WritePgAdminServerJson(postgresInstances, cancellationToken).ConfigureAwait(false), 713Contents = fileContent,
Aspire.Hosting.Tests (3)
DistributedApplicationTests.cs (3)
868Contents = "Hello World!", 880Contents = "value", 1097Contents = "not a real cert",
16 references to Contents
Aspire.Hosting (3)
ApplicationModel\ContainerFileSystemCallbackAnnotation.cs (1)
69/// Setting SourcePath is mutually exclusive with <see cref="Contents"/>. If both are set, an exception will be thrown.
Dcp\Model\Container.cs (2)
400entry.Contents = file.Contents; 403if (file.Contents is not null && file.SourcePath is not null)
Aspire.Hosting.Azure.Tests (5)
AzureEventHubsExtensionsTests.cs (2)
382""", configFile.Contents); 436""", configFile.Contents);
AzureServiceBusExtensionsTests.cs (3)
443""", configFile.Contents); 491""", configFile.Contents); 537""", configFile.Contents);
Aspire.Hosting.Containers.Tests (3)
ContainerFileSystemCallbackContextTests.cs (3)
29Assert.Equal("key=value", file.Contents); 46Assert.Null(file.Contents); 60Assert.Equal("-----BEGIN CERTIFICATE-----", cert.Contents);
Aspire.Hosting.Docker (1)
DockerComposePublishingContext.cs (1)
214Content = file.Contents,
Aspire.Hosting.PostgreSQL.Tests (4)
AddPostgresTests.cs (4)
527Assert.NotNull(serversFile.Contents); 530var document = JsonDocument.Parse(serversFile.Contents!); 603Assert.Equal(CreatePgWebBookmarkfileContent(db1.Resource), file.Contents); 610Assert.Equal(CreatePgWebBookmarkfileContent(db2.Resource), file.Contents);