11 types derived from ExecutableResource
Aspire.Hosting (1)
Aspire.Hosting.DevTunnels (1)
Aspire.Hosting.JavaScript (2)
Aspire.Hosting.JavaScript.Tests (1)
Aspire.Hosting.Python (3)
Aspire.Hosting.Python.Tests (1)
Aspire.Hosting.Tests (2)
8 instantiations of ExecutableResource
Aspire.Hosting (3)
Aspire.Hosting.Tests (5)
ExecutableResourceTests.cs (4)
103=> Assert.Throws<ArgumentNullException>("command", () => new ExecutableResource("name", command: null!, workingDirectory: "."));
107=> Assert.Throws<ArgumentException>("command", () => new ExecutableResource("name", command: "", workingDirectory: "."));
111=> Assert.Throws<ArgumentNullException>("workingDirectory", () => new ExecutableResource("name", command: "cmd", workingDirectory: null!));
116var er = new ExecutableResource("name", command: "cmd", workingDirectory: "");
57 references to ExecutableResource
Aspire.Hosting (26)
ExecutableResourceBuilderExtensions.cs (12)
30public static IResourceBuilder<ExecutableResource> AddExecutable(this IDistributedApplicationBuilder builder, [ResourceName] string name, string command, string workingDirectory, params string[]? args)
49public static IResourceBuilder<ExecutableResource> AddExecutable(this IDistributedApplicationBuilder builder, [ResourceName] string name, string command, string workingDirectory, params object[]? args)
58var executable = new ExecutableResource(name, command, workingDirectory);
70/// Adds annotation to <see cref="ExecutableResource" /> to support containerization during deployment.
75public static IResourceBuilder<T> PublishAsDockerFile<T>(this IResourceBuilder<T> builder) where T : ExecutableResource
81/// Adds annotation to <see cref="ExecutableResource" /> to support containerization during deployment.
90public static IResourceBuilder<T> PublishAsDockerFile<T>(this IResourceBuilder<T> builder, IEnumerable<DockerBuildArg>? buildArgs) where T : ExecutableResource
104/// Adds support for containerizing this <see cref="ExecutableResource"/> during deployment.
118where T : ExecutableResource
173public static IResourceBuilder<T> WithCommand<T>(this IResourceBuilder<T> builder, string command) where T : ExecutableResource
203public static IResourceBuilder<T> WithWorkingDirectory<T>(this IResourceBuilder<T> builder, string workingDirectory) where T : ExecutableResource
218private sealed class ExecutableContainerResource(ExecutableResource er) : ContainerResource(er.Name)
Aspire.Hosting.Azure.AppContainers (1)
Aspire.Hosting.Azure.Tests (1)
Aspire.Hosting.JavaScript (2)
Aspire.Hosting.JavaScript.Tests (1)
Aspire.Hosting.Python (2)
Aspire.Hosting.Tests (22)
Aspire.Playground.Tests (1)
Stress.AppHost (1)