5 writes to DockerfileFactory
Aspire.Hosting (1)
ContainerResourceBuilderExtensions.cs (1)
843DockerfileFactory = dockerfileFactory
Aspire.Hosting.Rust (1)
RustHostingExtensions.cs (1)
825DockerfileFactory = async factoryContext =>
Aspire.Hosting.Tests (3)
ApplicationModel\Docker\DockerfileBuildAnnotationTests.cs (3)
107DockerfileFactory = _ => Task.FromResult(expectedContent) 143DockerfileFactory = _ => 183DockerfileFactory = async _ =>
41 references to DockerfileFactory
Aspire.Hosting (6)
ApplicationModel\DockerfileBuildAnnotation.cs (3)
91if (DockerfileFactory is null) 111var dockerfileContent = await DockerfileFactory(context).ConfigureAwait(false); 132/// This method materializes a Dockerfile from <see cref="DockerfileFactory"/> when present, then
Publishing\ManifestPublishingContext.cs (1)
382if (annotation.DockerfileFactory is not null)
Publishing\ResourceContainerImageManager.cs (1)
947if (dockerfileBuildAnnotation.DockerfileFactory is not null)
Utils\DockerfileHelper.cs (1)
26if (annotation.DockerfileFactory is not null)
Aspire.Hosting.Azure (1)
AzurePublishingContext.cs (1)
419dockerfileBuildAnnotation.DockerfileFactory is not null)
Aspire.Hosting.Containers.Tests (5)
WithDockerfileTests.cs (5)
798Assert.NotNull(annotation.DockerfileFactory); 826var generatedContent = await annotation.DockerfileFactory(context); 850Assert.NotNull(annotation.DockerfileFactory); 859var generatedContent = await annotation.DockerfileFactory(context); 904Assert.NotNull(annotation.DockerfileFactory);
Aspire.Hosting.Docker (1)
DockerComposePublishingContext.cs (1)
87dockerfileBuildAnnotation.DockerfileFactory is not null)
Aspire.Hosting.EntityFrameworkCore.Tests (1)
EFMigrationPipelineTests.cs (1)
469Assert.NotNull(dockerfileAnnotation.DockerfileFactory);
Aspire.Hosting.Java.Tests (1)
AddJavaAppPublishTests.cs (1)
2393() => annotation.DockerfileFactory!(context));
Aspire.Hosting.JavaScript (1)
JavaScriptHostingExtensions.cs (1)
1953dockerfileBuildAnnotation.DockerfileFactory is not null ||
Aspire.Hosting.Kubernetes (1)
KubernetesPublishingContext.cs (1)
86dockerfileBuildAnnotation.DockerfileFactory is not null)
Aspire.Hosting.Tests (13)
ApplicationModel\Docker\WithDockerfileBuilderTests.cs (13)
72Assert.NotNull(buildAnnotation.DockerfileFactory); 93Assert.NotNull(buildAnnotation.DockerfileFactory); 103var dockerfile = await buildAnnotation.DockerfileFactory(factoryContext); 154var dockerfile = await buildAnnotation.DockerfileFactory!(factoryContext); 190var dockerfile = await buildAnnotation.DockerfileFactory!(factoryContext); 224var dockerfile = await buildAnnotation.DockerfileFactory!(factoryContext); 265var dockerfile = await buildAnnotation.DockerfileFactory!(factoryContext); 335Assert.NotNull(buildAnnotation.DockerfileFactory); 345var dockerfile = await buildAnnotation.DockerfileFactory(factoryContext); 371Assert.NotNull(buildAnnotation.DockerfileFactory); 381var dockerfile = await buildAnnotation.DockerfileFactory(factoryContext); 407Assert.NotNull(buildAnnotation.DockerfileFactory); 446var dockerfile = await buildAnnotation.DockerfileFactory!(factoryContext);
Aspire.Hosting.Yarp.Tests (11)
AddYarpTests.cs (11)
215Assert.NotNull(annotation.DockerfileFactory); 228Assert.NotNull(annotation.DockerfileFactory); 237var dockerfile = await annotation.DockerfileFactory(context); 306Assert.NotNull(buildAnnotation.DockerfileFactory); 317var dockerfile = await buildAnnotation.DockerfileFactory(context); 336Assert.NotNull(buildAnnotation.DockerfileFactory); 348var dockerfile = await buildAnnotation.DockerfileFactory(context); 369Assert.NotNull(buildAnnotation.DockerfileFactory); 380var dockerfile = await buildAnnotation.DockerfileFactory(context); 407Assert.NotNull(buildAnnotation.DockerfileFactory); 418var dockerfile = await buildAnnotation.DockerfileFactory(context);