1 instantiation of ExecutableResource
Aspire.Hosting.Dapr (1)
DaprDistributedApplicationLifecycleHook.cs (1)
150var daprCli = new ExecutableResource(daprCliResourceName, fileName, appHostDirectory);
34 references to ExecutableResource
Aspire.Hosting (16)
BuiltInDistributedApplicationEventSubscriptionHandlers.cs (1)
23foreach (var executable in beforeStartEvent.Model.GetExecutableResources())
Dashboard\DashboardLifecycleHook.cs (2)
103ExecutableResource? dashboardResource = default; 148ExecutableResource => KnownResourceTypes.Executable,
Dcp\ApplicationExecutor.cs (1)
1072foreach (var executable in modelExecutableResources)
Dcp\DcpNameGenerator.cs (1)
40else if (resource is ExecutableResource)
ExecutableResourceBuilderExtensions.cs (6)
24public static IResourceBuilder<ExecutableResource> AddExecutable(this IDistributedApplicationBuilder builder, [ResourceName] string name, string command, string workingDirectory, params string[]? args) 43public static IResourceBuilder<ExecutableResource> AddExecutable(this IDistributedApplicationBuilder builder, [ResourceName] string name, string command, string workingDirectory, params object[]? args) 52var executable = new ExecutableResource(name, command, workingDirectory); 64/// Adds annotation to <see cref="ExecutableResource" /> to support containerization during deployment. 72public static IResourceBuilder<T> PublishAsDockerFile<T>(this IResourceBuilder<T> builder, IEnumerable<DockerBuildArg>? buildArgs = null) where T : ExecutableResource 79private 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) 22return model.Resources.OfType<ExecutableResource>();
Publishing\ManifestPublishingContext.cs (2)
107else if (resource is ExecutableResource executable) 190private async Task WriteExecutableAsync(ExecutableResource executable)
Aspire.Hosting.Dapr (2)
DaprDistributedApplicationLifecycleHook.cs (2)
41var sideCars = new List<ExecutableResource>(); 150var 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)
AddPythonAppTests.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)
48var dashboard = Assert.Single(model.Resources.OfType<ExecutableResource>()); 173var dashboard = Assert.Single(model.Resources.OfType<ExecutableResource>()); 462var dashboard = Assert.Single(model.Resources.OfType<ExecutableResource>());
Dcp\ApplicationExecutorTests.cs (1)
365(Action<IResourceBuilder<ExecutableResource>> AddEndpoint, string ErrorMessageFragment)[] testcases = [
WithEndpointTests.cs (1)
213var resource = Assert.Single(exeResources);
Aspire.Playground.Tests (1)
Infrastructure\DistributedApplicationExtensions.cs (1)
147(ProjectResource or ExecutableResource)