A small service processes input items by opening a separate resource for each item and returning a summary of the result. After a recent change, the behavior began to diverge from the actual processing.
ResourceBatchProcessor.ProcessAsync method accepts an input sequence and a CancellationToken.SessionHandle is created and must be released after the item is processed.The build is run as a normal console application in Release mode.
ProcessAsync:new[] { " alpha ", "", "ALPHA", "beta" }
Processed, Skipped, Failed.SessionHandle is released exactly once.dotnet run or dotnet test without additional packagesnet8.0Use line comments to explain the problem, its impact, the fix and how to test it.