2 writes to Type
Aspire.Hosting.Python (2)
PythonAppResourceBuilderExtensions.cs (2)
383Type = entrypointType, 1088Type = entrypointType,
12 references to Type
Aspire.Hosting.Python (7)
PythonAppResourceBuilderExtensions.cs (7)
475var entrypointType = entrypointAnnotation.Type; 894string command = entrypointAnnotation.Type switch 898_ => throw new InvalidOperationException($"Unsupported entrypoint type: {entrypointAnnotation.Type}") 947var entrypointType = entrypointAnnotation.Type; 1007if (annotation.Type == EntrypointType.Module) 1018else if (annotation.Type == EntrypointType.Script) 1103var entrypointType = existingAnnotation.Type;
Aspire.Hosting.Python.Tests (5)
AddPythonAppTests.cs (5)
219Assert.Equal(EntrypointType.Script, entrypointAnnotation.Type); 919Assert.Equal(EntrypointType.Script, entrypointAnnotation.Type); 938Assert.Equal(EntrypointType.Module, entrypointAnnotation.Type); 957Assert.Equal(EntrypointType.Executable, entrypointAnnotation.Type); 1152Assert.Equal(EntrypointType.Module, entrypointAnnotation.Type);