42 references to EntrypointType
Aspire.Hosting.Python (31)
PythonAppResourceBuilderExtensions.cs (30)
70
=> AddPythonAppCore(builder, name, appDirectory,
EntrypointType
.Script, scriptPath, DefaultVirtualEnvFolder)
108
=> AddPythonAppCore(builder, name, appDirectory,
EntrypointType
.Module, moduleName, DefaultVirtualEnvFolder)
149
=> AddPythonAppCore(builder, name, appDirectory,
EntrypointType
.Executable, executableName, DefaultVirtualEnvFolder);
186
return AddPythonAppCore(builder, name, appDirectory,
EntrypointType
.Script, scriptPath, DefaultVirtualEnvFolder)
229
return AddPythonAppCore(builder, name, appDirectory,
EntrypointType
.Script, scriptPath, virtualEnvironmentPath)
278
EntrypointType
.Executable,
337
IDistributedApplicationBuilder builder, string name, string appDirectory,
EntrypointType
entrypointType,
345
IDistributedApplicationBuilder builder, string name, string appDirectory,
EntrypointType
entrypointType,
462
var
entrypointType = entrypointAnnotation.Type;
529
string pythonVersion,
EntrypointType
entrypointType, string entrypoint)
621
case
EntrypointType
.Script:
624
case
EntrypointType
.Module:
627
case
EntrypointType
.Executable:
634
string pythonVersion,
EntrypointType
entrypointType, string entrypoint)
721
case
EntrypointType
.Script:
724
case
EntrypointType
.Module:
727
case
EntrypointType
.Executable:
885
EntrypointType
.Executable => virtualEnvironment.GetExecutable(entrypointAnnotation.Entrypoint),
886
EntrypointType
.Script or
EntrypointType
.Module => virtualEnvironment.GetExecutable("python"),
938
var
entrypointType = entrypointAnnotation.Type;
950
if (entrypointType ==
EntrypointType
.Script)
1037
this IResourceBuilder<T> builder,
EntrypointType
entrypointType, string entrypoint) where T : PythonAppResource
1054
EntrypointType
.Executable => virtualEnvironment.GetExecutable(entrypoint),
1055
EntrypointType
.Script or
EntrypointType
.Module => virtualEnvironment.GetExecutable("python"),
1079
var
entrypointType = existingAnnotation.Type;
1085
case
EntrypointType
.Module:
1089
case
EntrypointType
.Script:
1092
case
EntrypointType
.Executable:
PythonEntrypointAnnotation.cs (1)
16
public required
EntrypointType
Type { get; set; }
Aspire.Hosting.Python.Tests (11)
AddPythonAppTests.cs (11)
220
Assert.Equal(
EntrypointType
.Script, entrypointAnnotation.Type);
932
Assert.Equal(
EntrypointType
.Script, entrypointAnnotation.Type);
951
Assert.Equal(
EntrypointType
.Module, entrypointAnnotation.Type);
970
Assert.Equal(
EntrypointType
.Executable, entrypointAnnotation.Type);
1155
pythonBuilder.WithEntrypoint(
EntrypointType
.Module, "uvicorn")
1165
Assert.Equal(
EntrypointType
.Module, entrypointAnnotation.Type);
1187
pythonBuilder.WithEntrypoint(
EntrypointType
.Executable, "pytest");
1206
resourceBuilder.WithEntrypoint(
EntrypointType
.Module, "flask"));
1217
builder.WithEntrypoint(
EntrypointType
.Module, "flask"));
1231
resourceBuilder.WithEntrypoint(
EntrypointType
.Module, null!));
1235
resourceBuilder.WithEntrypoint(
EntrypointType
.Module, string.Empty));