< Summary

Information
Class: Elsa.AI.Abstractions.Contracts.IAIAuditEventHandler
Assembly: Elsa.AI.Abstractions
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.AI.Abstractions/Contracts/IAIAuditEventHandler.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 3
Coverable lines: 3
Total lines: 14
Line coverage: 0%
Branch coverage
0%
Covered branches: 0
Total branches: 2
Branch coverage: 0%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
RecordManyAsync()0%620%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.AI.Abstractions/Contracts/IAIAuditEventHandler.cs

#LineLine coverage
 1using Elsa.AI.Abstractions.Models;
 2
 3namespace Elsa.AI.Abstractions.Contracts;
 4
 5public interface IAIAuditEventHandler
 6{
 7    ValueTask RecordAsync(AIAuditEvent auditEvent, CancellationToken cancellationToken = default);
 8
 9    async ValueTask RecordManyAsync(IReadOnlyCollection<AIAuditEvent> auditEvents, CancellationToken cancellationToken =
 10    {
 011        foreach (var auditEvent in auditEvents)
 012            await RecordAsync(auditEvent, cancellationToken);
 013    }
 14}

Methods/Properties

RecordManyAsync()