ExecutableResourceBuilderExtensions
Class static net10.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[]?)extensionIResourceBuilder<ExecutableResource> Adds an executable resource to the application model.
AddExecutable(IDistributedApplicationBuilder, string, string, string, object[]?)extensionIResourceBuilder<ExecutableResource> Adds an executable resource to the application model.
PublishAsDockerFile(IResourceBuilder<T>)extension 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>>)extension 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)extension Sets the command for the executable resource.
WithWorkingDirectory(IResourceBuilder<T>, string)extension Sets the working directory for the executable resource.