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

lucaslorentz / durabletask-extensions / 11427474227

20 Oct 2024 03:22PM CUT coverage: 81.967%. Remained the same
11427474227

push

github

lucaslorentz
Update .net packages

2350 of 2867 relevant lines covered (81.97%)

138.88 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