< Summary

Information
Class: Elsa.ExternalAuthentication.Services.ExternalIdentityKey
Assembly: Elsa.ExternalAuthentication
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.ExternalAuthentication/Services/InMemoryExternalIdentityProvisionerState.cs
Line coverage
100%
Covered lines: 1
Uncovered lines: 0
Coverable lines: 1
Total lines: 15
Line coverage: 100%
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
get_TenantId()100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.ExternalAuthentication/Services/InMemoryExternalIdentityProvisionerState.cs

#LineLine coverage
 1using Elsa.ExternalAuthentication.Models;
 2
 3namespace Elsa.ExternalAuthentication.Services;
 4
 5/// <summary>
 6/// Shared single-node state for the scoped in-memory identity provisioner.
 7/// </summary>
 8public sealed class InMemoryExternalIdentityProvisionerState
 9{
 10    internal SemaphoreSlim Mutex { get; } = new(1, 1);
 11    internal IDictionary<ExternalIdentityKey, ExternalIdentityLink> Links { get; } = new Dictionary<ExternalIdentityKey,
 12    internal ISet<string> ReservedUserNames { get; } = new HashSet<string>(StringComparer.Ordinal);
 13}
 14
 7615internal sealed record ExternalIdentityKey(string TenantId, string ConnectionKey, string Issuer, string SubjectHash);

Methods/Properties

get_TenantId()