13 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)
544Contents = Encoding.UTF8.GetString(writeStream.ToArray()),
Aspire.Hosting.Azure.WebPubSub (1)
AzureWebPubSubExtensions.cs (1)
247return [new ContainerFile { Name = "appsettings.json", Contents = config.ToJsonString() }];
Aspire.Hosting.Blazor.Tests (1)
AddBlazorGatewayTests.cs (1)
261new ContainerFile { Name = "forecast.json", Contents = """{"temperatureC":21}""" }
Aspire.Hosting.Docker.Tests (1)
DockerComposePublisherTests.cs (1)
47Contents = "hello world",
Aspire.Hosting.MongoDB (1)
MongoDBBuilderExtensions.cs (1)
622Contents = await keyValue.GetValueAsync(ct).ConfigureAwait(false),
Aspire.Hosting.PostgreSQL (2)
PostgresBuilderExtensions.cs (2)
275Contents = await WritePgAdminServerJson(postgresInstances, cancellationToken).ConfigureAwait(false), 711Contents = fileContent,
Aspire.Hosting.Tests (3)
DistributedApplicationTests.cs (3)
868Contents = "Hello World!", 880Contents = "value", 1097Contents = "not a real cert",
17 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 (6)
AzureEventHubsExtensionsTests.cs (2)
382""", configFile.Contents); 436""", configFile.Contents);
AzureServiceBusExtensionsTests.cs (3)
444""", configFile.Contents); 492""", configFile.Contents); 538""", configFile.Contents);
AzureWebPubSubEmulatorTests.cs (1)
178return Assert.IsType<string>(file.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)
213Content = 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);