Skip to content

1.8.15

Compare
Choose a tag to compare
@github-actions github-actions released this 19 May 20:31
604c96f

Added

Changed

  • Htmlizer uses StringBuilder instead of List<string> to reduce allocations and improve render speed. By @linkdotnet.

Fixes

  • TestServiceProvider now implements IAsyncDisposable. This means TestContext.Dispose() now calls the async disposable method as well as the non-async version on the service provider. It does however not block or await the task returned, since that can lead to deadlocks.

    To await the disposal of async services registered in the TestContext.Services container, do the following:

    1. Create a new type that derives from TestContext and which implement IAsyncDisposable.
    2. In the DisposeAsync() method, call Services.DisposeAsync().
    3. Override the Dispose and have it only call Services.Dispose().

    Reported by @vedion and fixed by @egil.