2 writes to Type
Aspire.Hosting.Python (2)
PythonAppResourceBuilderExtensions.cs (2)
364Type = entrypointType, 1072Type = entrypointType,
12 references to Type
Aspire.Hosting.Python (7)
PythonAppResourceBuilderExtensions.cs (7)
456var entrypointType = entrypointAnnotation.Type; 876string command = entrypointAnnotation.Type switch 880_ => throw new InvalidOperationException($"Unsupported entrypoint type: {entrypointAnnotation.Type}") 930var entrypointType = entrypointAnnotation.Type; 990if (annotation.Type == EntrypointType.Module) 1001else if (annotation.Type == EntrypointType.Script) 1087var entrypointType = existingAnnotation.Type;
Aspire.Hosting.Python.Tests (5)
AddPythonAppTests.cs (5)
219Assert.Equal(EntrypointType.Script, entrypointAnnotation.Type); 930Assert.Equal(EntrypointType.Script, entrypointAnnotation.Type); 949Assert.Equal(EntrypointType.Module, entrypointAnnotation.Type); 968Assert.Equal(EntrypointType.Executable, entrypointAnnotation.Type); 1163Assert.Equal(EntrypointType.Module, entrypointAnnotation.Type);