1 instantiation of ExecutableResource
Aspire.Hosting.Dapr (1)
DaprDistributedApplicationLifecycleHook.cs (1)
138var daprCli = new ExecutableResource(daprCliResourceName, fileName, appHostDirectory);
32 references to ExecutableResource
Aspire.Hosting (14)
Dashboard\DashboardLifecycleHook.cs (2)
87ExecutableResource? dashboardResource = default; 126ExecutableResource => KnownResourceTypes.Executable,
Dcp\ApplicationExecutor.cs (1)
1022foreach (var executable in modelExecutableResources)
ExecutableResourceBuilderExtensions.cs (6)
24public static IResourceBuilder<ExecutableResource> AddExecutable(this IDistributedApplicationBuilder builder, string name, string command, string workingDirectory, params string[]? args) 38public static IResourceBuilder<ExecutableResource> AddExecutable(this IDistributedApplicationBuilder builder, string name, string command, string workingDirectory, params object[]? args) 42var executable = new ExecutableResource(name, command, workingDirectory); 54/// Adds annotation to <see cref="ExecutableResource" /> to support containerization during deployment. 62public static IResourceBuilder<T> PublishAsDockerFile<T>(this IResourceBuilder<T> builder, IEnumerable<DockerBuildArg>? buildArgs = null) where T : ExecutableResource 67private static async Task WriteExecutableAsDockerfileResourceAsync(ManifestPublishingContext context, ExecutableResource executable, IEnumerable<DockerBuildArg>? buildArgs = null)
ExecutableResourceExtensions.cs (3)
9/// Provides extension methods for working with <see cref="ExecutableResource"/> objects. 18public static IEnumerable<ExecutableResource> GetExecutableResources(this DistributedApplicationModel model) 20return model.Resources.OfType<ExecutableResource>();
Publishing\ManifestPublishingContext.cs (2)
107else if (resource is ExecutableResource executable) 166private async Task WriteExecutableAsync(ExecutableResource executable)
Aspire.Hosting.Dapr (2)
DaprDistributedApplicationLifecycleHook.cs (2)
41var sideCars = new List<ExecutableResource>(); 138var daprCli = new ExecutableResource(daprCliResourceName, fileName, appHostDirectory);
Aspire.Hosting.Dapr.Tests (4)
DaprTests.cs (4)
43var sideCarCli = Assert.Single(model.Resources.OfType<ExecutableResource>()); 142var sideCarCli = Assert.Single(model.Resources.OfType<ExecutableResource>());
Aspire.Hosting.Python.Tests (3)
AddPythonProjectTests.cs (3)
143var pythonProjectResource = Assert.Single(executableResources); 179var pythonProjectResource = Assert.Single(executableResources); 218var pythonProjectResource = Assert.Single(executableResources);
Aspire.Hosting.Tests (8)
Dashboard\DashboardResourceTests.cs (6)
43var dashboard = Assert.Single(model.Resources.OfType<ExecutableResource>()); 162var dashboard = Assert.Single(model.Resources.OfType<ExecutableResource>()); 424var dashboard = Assert.Single(model.Resources.OfType<ExecutableResource>());
Dcp\ApplicationExecutorTests.cs (1)
309(Action<IResourceBuilder<ExecutableResource>> AddEndpoint, string ErrorMessageFragment)[] testcases = [
WithEndpointTests.cs (1)
212var resource = Assert.Single(exeResources);
Aspire.Playground.Tests (1)
Infrastructure\DistributedApplicationExtensions.cs (1)
147(ProjectResource or ExecutableResource)