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