• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

DemoBytom / DemoEngine / 22501366615
29%
develop: 26%

Build:
Build:
LAST BUILD BRANCH: dependabot/nuget/main/nuget-packages-1f2036fa80
DEFAULT BRANCH: develop
Ran 27 Feb 2026 07:54PM UTC
Jobs 1
Files 68
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

27 Feb 2026 07:49PM UTC coverage: 29.406% (+0.09%) from 29.317%
22501366615

push

coveralls.net

web-flow
Async refactor - `StaThreadRequest` and `AsyncServiceScopes` (#512)

A warning was reported due to incorrectly disposing types that only implement `IAsyncDisposable`:
```
Demo.Engine Warning: 0 : AUTOFAC: A synchronous Dispose has been attempted, but the tracked object of type 'Demo.Engine.Core.Services.MainLoopService' only implements IAsyncDisposable. This will result in an inefficient blocking dispose. Consider either implementing IDisposable on 'Demo.Engine.Core.Services.MainLoopService' or disposing of the scope/container with DisposeAsync.
```

The solution was to use an `AsyncServiceScope` retreived via `_scopeFactory.CreateAsyncScope()` instead `IServiceScope` from `_scopeFactory.CreateScope()`.
This led to a bigger refactor as scopes were also created within `RenderingSurface` which in turn then required a `IAsyncDisposable` implementation. Changes in `RenderingSurface` required changes in `StaThreadRequests` and so on. Turtles all the way down 🐢🐢🐢
Currently all async methods are properly awaited and don't deadlock. But some `.ConfigureAwaits` might need to be added. This will be evaluated later.

Fixes #511

Co-authored-by: Michał Dembski <DemoBytom@users.noreply.github.com>

644 of 2190 relevant lines covered (29.41%)

0.32 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
4
0.0
0.0% /src/Demo.Engine.Core/Services/LoggingExtensions.cs
5
0.0
0.0% /src/Demo.Engine.Core/obj/release/net10.0/Microsoft.Extensions.Logging.Generators/Microsoft.Extensions.Logging.Generators.LoggerMessageGenerator/LoggerMessage.g.cs
6
92.94
0.35% /src/Demo.Engine.Core/Features/StaThread/StaThreadService.cs
70
0.0
0.0% /src/Demo.Engine.Platform.DirectX12/D3D12RenderingEngine.cs
Jobs
ID Job ID Ran Files Coverage
1 22501366615.1 27 Feb 2026 07:54PM UTC 133
10.83
Source Files on build 22501366615
  • Tree
  • List 68
  • Changed 19
  • Source Changed 8
  • Coverage Changed 18
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • a443121a on github
  • Prev Build on main (#22314621659)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc