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

lucaslorentz / durabletask-extensions / 5836038789

pending completion
5836038789

push

github

lucaslorentz
Add husky and apply some code fixes

2502 of 2502 new or added lines in 91 files covered. (100.0%)

2295 of 2792 relevant lines covered (82.2%)

143.82 hits per line

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

95.45
/src/LLL.DurableTask.EFCore/DependencyInjection/DurableTaskEFCoreServiceCollectionExtensions.cs
1
using System;
2
using DurableTask.Core;
3
using DurableTask.Core.Query;
4
using LLL.DurableTask.Core;
5
using LLL.DurableTask.EFCore;
6
using LLL.DurableTask.EFCore.DependencyInjection;
7
using LLL.DurableTask.EFCore.Mappers;
8

9
namespace Microsoft.Extensions.DependencyInjection;
10

11
public static class DurableTaskEFCoreServiceCollectionExtensions
12
{
13
    public static IEFCoreOrchestrationBuilder AddDurableTaskEFCoreStorage(
14
        this IServiceCollection services,
15
        Action<EFCoreOrchestrationOptions> configure = null)
16
    {
17
        var builder = new EFCoreOrchestrationBuilder(services);
124✔
18

19
        services.AddOptions<EFCoreOrchestrationOptions>();
124✔
20

21
        if (configure != null)
124✔
22
            services.Configure<EFCoreOrchestrationOptions>(configure);
×
23

24
        services.AddDbContextFactory<OrchestrationDbContext>(options =>
124✔
25
        {
124✔
26
            foreach (var configuration in builder.DbContextConfigurations)
620✔
27
                configuration(options);
248✔
28
        });
124✔
29

30
        services.AddSingleton<EFCoreOrchestrationService>();
124✔
31
        services.AddSingleton<IDistributedOrchestrationService>(p => p.GetRequiredService<EFCoreOrchestrationService>());
238✔
32
        services.AddSingleton<IOrchestrationService>(p => p.GetRequiredService<EFCoreOrchestrationService>());
238✔
33
        services.AddSingleton<IOrchestrationServiceClient>(p => p.GetRequiredService<EFCoreOrchestrationService>());
243✔
34
        services.AddSingleton<IOrchestrationServiceQueryClient>(p => p.GetRequiredService<EFCoreOrchestrationService>());
141✔
35
        services.AddSingleton<IOrchestrationServicePurgeClient>(p => p.GetRequiredService<EFCoreOrchestrationService>());
141✔
36
        services.AddSingleton<IOrchestrationServiceFeaturesClient>(p => p.GetRequiredService<EFCoreOrchestrationService>());
137✔
37
        services.AddSingleton<IOrchestrationServiceRewindClient>(p => p.GetRequiredService<EFCoreOrchestrationService>());
137✔
38

39
        services.AddSingleton<OrchestrationMessageMapper>();
124✔
40
        services.AddSingleton<ActivityMessageMapper>();
124✔
41
        services.AddSingleton<InstanceMapper>();
124✔
42
        services.AddSingleton<ExecutionMapper>();
124✔
43

44
        return builder;
124✔
45
    }
46
}
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

© 2025 Coveralls, Inc