2 writes to Type
Aspire.Hosting.Python (2)
PythonAppResourceBuilderExtensions.cs (2)
338Type = entrypointType, 1019Type = entrypointType,
12 references to Type
Aspire.Hosting.Python (7)
PythonAppResourceBuilderExtensions.cs (7)
430var entrypointType = entrypointAnnotation.Type; 825string command = entrypointAnnotation.Type switch 829_ => throw new InvalidOperationException($"Unsupported entrypoint type: {entrypointAnnotation.Type}") 878var entrypointType = entrypointAnnotation.Type; 938if (annotation.Type == EntrypointType.Module) 949else if (annotation.Type == EntrypointType.Script) 1034var entrypointType = existingAnnotation.Type;
Aspire.Hosting.Python.Tests (5)
AddPythonAppTests.cs (5)
219Assert.Equal(EntrypointType.Script, entrypointAnnotation.Type); 896Assert.Equal(EntrypointType.Script, entrypointAnnotation.Type); 915Assert.Equal(EntrypointType.Module, entrypointAnnotation.Type); 934Assert.Equal(EntrypointType.Executable, entrypointAnnotation.Type); 1129Assert.Equal(EntrypointType.Module, entrypointAnnotation.Type);