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

DemoBytom / DemoEngine / 24940020806

25 Apr 2026 08:30PM UTC coverage: 28.251% (-1.5%) from 29.75%
24940020806

push

coveralls.net

DemoBytom
Remove old `StaThreadService` and related codebase

Superseeded by `WindowsMessagePump`

1208 of 4276 relevant lines covered (28.25%)

0.32 hits per line

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

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

4
using System.Threading.Channels;
5
using Microsoft.Extensions.DependencyInjection;
6

7
namespace Demo.Engine.Core.Features.StaThread;
8

9
internal static class StaThreadRegistrationExtensions
10
{
11
    public static IServiceCollection AddStaThreadFeature(
12
        this IServiceCollection services)
13
    {
14
        _ = services
×
15
            .AddSingletonBoundedChannel<StaThreadRequests>(
×
16
                new BoundedChannelOptions(10)
×
17
                {
×
18
                    AllowSynchronousContinuations = false,
×
19
                    FullMode = BoundedChannelFullMode.Wait,
×
20
                    SingleReader = true,
×
21
                    SingleWriter = false,
×
22
                })
×
23
            .AddSingleton<IStaThreadWriter, StaThreadWriter>()
×
24
            .AddSingleton<IStaThreadReader, StaThreadReader>()
×
25
            ;
×
26

27
        return services;
×
28
    }
29
}
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