2 writes to Type
Aspire.Hosting.Python (2)
PythonAppResourceBuilderExtensions.cs (2)
252
Type
= entrypointType,
603
Type
= entrypointType,
11 references to Type
Aspire.Hosting.Python (6)
PythonAppResourceBuilderExtensions.cs (6)
335
if (annotation.
Type
== EntrypointType.Module)
346
else if (annotation.
Type
== EntrypointType.Script)
389
var entrypointType = entrypointAnnotation.
Type
;
530
string command = entrypointAnnotation.
Type
switch
534
_ => throw new InvalidOperationException($"Unsupported entrypoint type: {entrypointAnnotation.
Type
}")
618
var entrypointType = existingAnnotation.
Type
;
Aspire.Hosting.Python.Tests (5)
AddPythonAppTests.cs (5)
213
Assert.Equal(EntrypointType.Script, entrypointAnnotation.
Type
);
621
Assert.Equal(EntrypointType.Script, entrypointAnnotation.
Type
);
640
Assert.Equal(EntrypointType.Module, entrypointAnnotation.
Type
);
659
Assert.Equal(EntrypointType.Executable, entrypointAnnotation.
Type
);
854
Assert.Equal(EntrypointType.Module, entrypointAnnotation.
Type
);