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

lucaslorentz / durabletask-extensions / 9336995150

02 Jun 2024 08:43AM UTC coverage: 81.967% (+0.03%) from 81.942%
9336995150

push

github

lucaslorentz
Update to EF Core 8

6 of 6 new or added lines in 1 file covered. (100.0%)

2350 of 2867 relevant lines covered (81.97%)

139.01 hits per line

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

0.0
/src/LLL.DurableTask.AzureStorage/DependencyInjection/AzureStorageServiceCollectionExtensions.cs
1
using System;
2
using DurableTask.AzureStorage;
3
using DurableTask.Core;
4
using DurableTask.Core.Query;
5
using LLL.DurableTask.Core;
6
using LLL.DurableTaskExtensions.AzureStorage;
7
using Microsoft.Extensions.Options;
8

9
namespace Microsoft.Extensions.DependencyInjection;
10

11
public static class AzureStorageServiceCollectionExtensions
12
{
13
    public static IServiceCollection AddDurableTaskAzureStorage(
14
        this IServiceCollection services,
15
        Action<AzureStorageOrchestrationServiceSettings> configure)
16
    {
17
        services.AddOptions<AzureStorageOrchestrationServiceSettings>()
×
18
            .Configure(configure);
×
19

20
        services.AddTransient(p => p.GetRequiredService<IOptions<AzureStorageOrchestrationServiceSettings>>().Value);
×
21

22
        services.AddSingleton<AzureStorageOrchestrationService>();
×
23
        services.AddSingleton<AzureStorageOrchestrationServiceRewindClient>();
×
24

25
        services.AddSingleton<IOrchestrationService>(p => p.GetService<AzureStorageOrchestrationService>());
×
26
        services.AddSingleton<IOrchestrationServiceClient>(p => p.GetService<AzureStorageOrchestrationService>());
×
27
        services.AddSingleton<IOrchestrationServiceQueryClient>(p => p.GetService<AzureStorageOrchestrationService>());
×
28
        services.AddSingleton<IOrchestrationServicePurgeClient>(p => p.GetService<AzureStorageOrchestrationService>());
×
29
        services.AddSingleton<IOrchestrationServiceFeaturesClient>(p => p.GetService<AzureStorageOrchestrationServiceFeaturesClient>());
×
30
        services.AddSingleton<IOrchestrationServiceRewindClient>(p => p.GetService<AzureStorageOrchestrationServiceRewindClient>());
×
31

32
        return services;
×
33
    }
34
}
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