ExecutableResourceBuilderExtensions
Class static net8.0
Provides extension methods for adding executable resources to the
IDistributedApplicationBuilder application model. namespace Aspire.Hosting;
public static class ExecutableResourceBuilderExtensions{ // ...} 7 members
Methods7
Section titled MethodsAddExecutable(IDistributedApplicationBuilder, string, string, string, string[]?)extensionats exportIResourceBuilder<ExecutableResource> Adds an executable resource to the application model.
AddExecutable(IDistributedApplicationBuilder, string, string, string, object[]?)extensionats ignoredIResourceBuilder<ExecutableResource> Adds an executable resource to the application model.
PublishAsDockerFile(IResourceBuilder<T>)extensionats export Adds annotation to
ExecutableResource to support containerization during deployment. PublishAsDockerFile(IResourceBuilder<T>, IEnumerable<DockerBuildArg>)extensionobsolete Adds annotation to
ExecutableResource to support containerization during deployment. The resulting container image is built, and when the optional buildArgs are provided they're used with docker build --build-arg. PublishAsDockerFile(IResourceBuilder<T>, Action<IResourceBuilder<ContainerResource>>)extensionats export Adds support for containerizing this
ExecutableResource during deployment. The resulting container image is built, and when the optional configure action is provided, it is used to configure the container resource. WithCommand(IResourceBuilder<T>, string)extensionats export Sets the command for the executable resource.
WithWorkingDirectory(IResourceBuilder<T>, string)extensionats export Sets the working directory for the executable resource.