< Summary

Information
Class: Elsa.UserTasks.Persistence.EFCore.ShellFeatures.EFCoreUserTasksPersistenceShellFeatureBase
Assembly: Elsa.UserTasks.Persistence.EFCore
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.UserTasks.Persistence.EFCore/ShellFeatures/EFCoreUserTasksPersistenceShellFeatureBase.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 8
Coverable lines: 8
Total lines: 27
Line coverage: 0%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
OnConfiguring(...)100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.UserTasks.Persistence.EFCore/ShellFeatures/EFCoreUserTasksPersistenceShellFeatureBase.cs

#LineLine coverage
 1using Elsa.Persistence.EFCore;
 2using Elsa.UserTasks.Contracts;
 3using Elsa.UserTasks.Persistence.EFCore.Contracts;
 4using Elsa.UserTasks.Persistence.EFCore.Repositories;
 5using Microsoft.Extensions.DependencyInjection;
 6
 7namespace Elsa.UserTasks.Persistence.EFCore.ShellFeatures;
 8
 9/// <summary>
 10/// Shared provider shell base for User Tasks persistence.
 11/// </summary>
 12public abstract class EFCoreUserTasksPersistenceShellFeatureBase : PersistenceShellFeatureBase<UserTasksElsaDbContext>
 13{
 14    protected override void OnConfiguring(IServiceCollection services)
 15    {
 016        AddStore<UserTaskRecord, EFCoreUserTaskRepository>(services);
 017        AddStore<UserTaskGuestSessionRecord, EFCoreUserTaskGuestSessionIssuer>(services);
 018        AddStore<UserTaskInvitationDeliveryRecord, EFCoreUserTaskInvitationOutbox>(services);
 019        services.AddScoped<IUserTaskRepository, EFCoreUserTaskRepository>();
 020        services.AddScoped<IUserTaskPersistenceAdapter, EFCoreUserTaskRepository>();
 21
 22        // Guest sessions and undelivered invitation secrets must survive a restart and a failover, so the
 23        // provider replaces the Core in-memory defaults.
 024        services.AddScoped<IUserTaskGuestSessionIssuer, EFCoreUserTaskGuestSessionIssuer>();
 025        services.AddScoped<IUserTaskInvitationOutbox, EFCoreUserTaskInvitationOutbox>();
 026    }
 27}