Optimize json file deserialization #5161
Annotations
3 errors and 1 warning
Build solution:
src/api/Controllers/UploadController.cs#L74
'JsonSerializer.Deserialize<List<BoreholeImport>>(Stream, JsonSerializerOptions?)' synchronously blocks. Await 'JsonSerializer.DeserializeAsync<TValue>(Stream, JsonSerializerOptions?, CancellationToken)' instead. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1849)
|
Build solution:
src/api/Controllers/UploadController.cs#L74
'JsonSerializer.Deserialize<List<BoreholeImport>>(Stream, JsonSerializerOptions?)' synchronously blocks. Await 'JsonSerializer.DeserializeAsync<TValue>(Stream, JsonSerializerOptions?, CancellationToken)' instead. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1849)
|
Build solution
Process completed with exit code 1.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading