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