2 writes to Type
Aspire.Hosting.Python (2)
PythonAppResourceBuilderExtensions.cs (2)
369
Type
= entrypointType,
1122
Type
= entrypointType,
12 references to Type
Aspire.Hosting.Python (7)
PythonAppResourceBuilderExtensions.cs (7)
461
var entrypointType = entrypointAnnotation.
Type
;
563
if (entrypointAnnotation.
Type
== declaredType &&
575
$"Python app resource '{resource.Name}' is configured to run {entrypointAnnotation.
Type
.ToString().ToLowerInvariant()} '{entrypointAnnotation.Entrypoint}', but publish is using the existing Dockerfile '{dockerfileBuildAnnotation.DockerfilePath}'. " +
942
string command = entrypointAnnotation.
Type
switch
946
_ => throw new InvalidOperationException($"Unsupported entrypoint type: {entrypointAnnotation.
Type
}")
997
var entrypointType = entrypointAnnotation.
Type
;
1138
var entrypointType = existingAnnotation.
Type
;
Aspire.Hosting.Python.Tests (5)
AddPythonAppTests.cs (5)
222
Assert.Equal(EntrypointType.Script, entrypointAnnotation.
Type
);
966
Assert.Equal(EntrypointType.Script, entrypointAnnotation.
Type
);
985
Assert.Equal(EntrypointType.Module, entrypointAnnotation.
Type
);
1004
Assert.Equal(EntrypointType.Executable, entrypointAnnotation.
Type
);
1199
Assert.Equal(EntrypointType.Module, entrypointAnnotation.
Type
);