RustAppHostingExtension Methods
Class Methods 1 member
Provides extension methods for adding Rust applications to an
Hosting.IDistributedApplicationBuilder. AddRustApp(IDistributedApplicationBuilder, string, string, string[]?) Section titled AddRustApp(IDistributedApplicationBuilder, string, string, string[]?) extension IResourceBuilder<RustAppExecutableResource> Adds a Rust application to the application model. Executes the executable Rust app.
public static class RustAppHostingExtension{ public static IResourceBuilder<RustAppExecutableResource> AddRustApp( this IDistributedApplicationBuilder builder, string name, string workingDirectory, string[]? args = null) { // ... }}Parameters
builder IDistributedApplicationBuilder The Hosting.IDistributedApplicationBuilder to add the resource to. name string The name of the resource. workingDirectory string The working directory to use for the command. args string[]? optional The optional arguments to be passed to the executable when it is started. Returns
IResourceBuilder<RustAppExecutableResource> A reference to the ApplicationModel.IResourceBuilder`1.