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

DemoBytom / DemoEngine / 25692492109

11 May 2026 07:28PM UTC coverage: 28.743% (+0.4%) from 28.38%
25692492109

push

coveralls.net

DemoBytom
WIP Instrumentation source generator

1248 of 4342 relevant lines covered (28.74%)

0.33 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.Features.StaThread;
6
using Demo.Engine.Core.Interfaces;
7
using Demo.Engine.Core.Interfaces.Components;
8
using Demo.Engine.Core.Interfaces.Platform;
9
using Demo.Engine.Core.Platform;
10
using Demo.Engine.Core.Services;
11
using Demo.Engine.Observability.Abstractions;
12
using Microsoft.Extensions.DependencyInjection;
13

14
namespace Demo.Engine.Core;
15

16
public static class RegistrationExtensions
17
{
18
    public static IServiceCollection AddEngineCore(
19
        this IServiceCollection services) => services
×
20
                .AddSingleton<IKeyboardCache, KeyboardCache>()
×
21
                .AddTransient<IFpsTimer, FpsTimer>()
×
22
                .AddTransient<IContentFileProvider, ContentFileProvider>()
×
23
                .AddHostedService<EngineService>()
×
24
                .AddScoped<IMainLoopLifetime, MainLoopLifetime>()
×
25
                .AddScoped<ILoopJob, LoopJob>()
×
26
                .AddScoped<IMainLoopService, MainLoopService>()
×
27
                .AddStaThreadFeature()
×
28
                ;
29

30
    public static ref TTelemetryBuilder WithCoreInstrumentation<TTelemetryBuilder>(
31
        ref this TTelemetryBuilder telemetryBuilder)
32
        where TTelemetryBuilder : struct, ITelemetryBuilder<TTelemetryBuilder>, allows ref struct
33
    {
34
        telemetryBuilder.WithInstrumentation<Instrumentation>();
×
35
        return ref telemetryBuilder;
×
36
    }
37
}
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