1 write to DockerfileFactory
Aspire.Hosting (1)
ContainerResourceBuilderExtensions.cs (1)
673DockerfileFactory = dockerfileFactory
40 references to DockerfileFactory
Aspire.Hosting (5)
Publishing\ManifestPublishingContext.cs (1)
335if (annotation.DockerfileFactory is not null)
Publishing\ResourceContainerImageBuilder.cs (2)
346if (dockerfileBuildAnnotation.DockerfileFactory is not null) 354var dockerfileContent = await dockerfileBuildAnnotation.DockerfileFactory(context).ConfigureAwait(false);
Utils\DockerfileHelper.cs (2)
26if (annotation.DockerfileFactory is not null) 35var dockerfileContent = await annotation.DockerfileFactory(context).ConfigureAwait(false);
Aspire.Hosting.Azure (2)
AzurePublishingContext.cs (2)
310dockerfileBuildAnnotation.DockerfileFactory is not null) 318var dockerfileContent = await dockerfileBuildAnnotation.DockerfileFactory(context).ConfigureAwait(false);
Aspire.Hosting.Containers.Tests (5)
WithDockerfileTests.cs (5)
777Assert.NotNull(annotation.DockerfileFactory); 800var generatedContent = await annotation.DockerfileFactory(context); 823Assert.NotNull(annotation.DockerfileFactory); 832var generatedContent = await annotation.DockerfileFactory(context); 874Assert.NotNull(annotation.DockerfileFactory);
Aspire.Hosting.Docker (2)
DockerComposePublishingContext.cs (2)
87dockerfileBuildAnnotation.DockerfileFactory is not null) 95var dockerfileContent = await dockerfileBuildAnnotation.DockerfileFactory(dockerfileContext).ConfigureAwait(false);
Aspire.Hosting.Kubernetes (2)
KubernetesPublishingContext.cs (2)
75dockerfileBuildAnnotation.DockerfileFactory is not null) 83var dockerfileContent = await dockerfileBuildAnnotation.DockerfileFactory(dockerfileContext).ConfigureAwait(false);
Aspire.Hosting.Tests (13)
ApplicationModel\Docker\WithDockerfileBuilderTests.cs (13)
71Assert.NotNull(buildAnnotation.DockerfileFactory); 92Assert.NotNull(buildAnnotation.DockerfileFactory); 102var dockerfile = await buildAnnotation.DockerfileFactory(factoryContext); 153var dockerfile = await buildAnnotation.DockerfileFactory!(factoryContext); 189var dockerfile = await buildAnnotation.DockerfileFactory!(factoryContext); 223var dockerfile = await buildAnnotation.DockerfileFactory!(factoryContext); 264var dockerfile = await buildAnnotation.DockerfileFactory!(factoryContext); 334Assert.NotNull(buildAnnotation.DockerfileFactory); 344var dockerfile = await buildAnnotation.DockerfileFactory(factoryContext); 370Assert.NotNull(buildAnnotation.DockerfileFactory); 380var dockerfile = await buildAnnotation.DockerfileFactory(factoryContext); 406Assert.NotNull(buildAnnotation.DockerfileFactory); 445var dockerfile = await buildAnnotation.DockerfileFactory!(factoryContext);
Aspire.Hosting.Yarp.Tests (11)
AddYarpTests.cs (11)
178Assert.NotNull(annotation.DockerfileFactory); 191Assert.NotNull(annotation.DockerfileFactory); 200var dockerfile = await annotation.DockerfileFactory(context); 269Assert.NotNull(buildAnnotation.DockerfileFactory); 280var dockerfile = await buildAnnotation.DockerfileFactory(context); 299Assert.NotNull(buildAnnotation.DockerfileFactory); 311var dockerfile = await buildAnnotation.DockerfileFactory(context); 332Assert.NotNull(buildAnnotation.DockerfileFactory); 343var dockerfile = await buildAnnotation.DockerfileFactory(context); 370Assert.NotNull(buildAnnotation.DockerfileFactory); 381var dockerfile = await buildAnnotation.DockerfileFactory(context);