10 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.PostgreSQL (2)
PostgresBuilderExtensions.cs (2)
229Contents = await WritePgAdminServerJson(postgresInstances, cancellationToken).ConfigureAwait(false), 635Contents = fileContent,
Aspire.Hosting.Tests (3)
DistributedApplicationTests.cs (3)
864Contents = "Hello World!", 876Contents = "value", 1093Contents = "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)
384""", configFile.Contents); 442""", configFile.Contents);
AzureServiceBusExtensionsTests.cs (3)
445""", configFile.Contents); 497""", configFile.Contents); 547""", 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)
505Assert.NotNull(serversFile.Contents); 508var document = JsonDocument.Parse(serversFile.Contents!); 581Assert.Equal(CreatePgWebBookmarkfileContent(db1.Resource), file.Contents); 588Assert.Equal(CreatePgWebBookmarkfileContent(db2.Resource), file.Contents);