2 writes to Type
Aspire.Hosting.Python (2)
PythonAppResourceBuilderExtensions.cs (2)
386Type = entrypointType, 1091Type = entrypointType,
12 references to Type
Aspire.Hosting.Python (7)
PythonAppResourceBuilderExtensions.cs (7)
478var entrypointType = entrypointAnnotation.Type; 897string command = entrypointAnnotation.Type switch 901_ => throw new InvalidOperationException($"Unsupported entrypoint type: {entrypointAnnotation.Type}") 950var entrypointType = entrypointAnnotation.Type; 1010if (annotation.Type == EntrypointType.Module) 1021else if (annotation.Type == EntrypointType.Script) 1106var 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);