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

DemoBytom / DemoEngine / 13123725757

03 Feb 2025 10:03PM UTC coverage: 10.779% (-0.8%) from 11.563%
13123725757

push

coveralls.net

DemoBytom
Fixing winforms deadlocks

an await operation must return to the thread it was spawned on, because due to using winforms the main thread must be SDA.
But because the windows messages are handled by a loop, and that loop had a async operation - the message to switch back to main thread deadlocks

227 of 2106 relevant lines covered (10.78%)

24786.31 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/Demo.Engine.Core/RegistrationExtensions.cs
1
// Copyright © Michał Dembski and contributors.
2
// Distributed under MIT license. See LICENSE file in the root for more information.
3

4
using Demo.Engine.Core.Components.Keyboard.Internal;
5
using Demo.Engine.Core.Interfaces;
6
using Demo.Engine.Core.Interfaces.Components;
7
using Demo.Engine.Core.Interfaces.Platform;
8
using Demo.Engine.Core.Platform;
9
using Demo.Engine.Core.Services;
10
using Microsoft.Extensions.DependencyInjection;
11

12
namespace Demo.Engine.Core;
13

14
public static class RegistrationExtensions
15
{
16
    public static IServiceCollection AddEngineCore(
17
        this IServiceCollection services)
18
        => services
×
19
            .AddScoped<IMainLoopService, MainLoopService>()
×
20
            .AddSingleton<IKeyboardCache, KeyboardCache>()
×
21
            .AddTransient<IFpsTimer, FpsTimer>()
×
22
            .AddTransient<IContentFileProvider, ContentFileProvider>()
×
23
            .AddHostedService<EngineServiceNew>()
×
24
        ;
25
}
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