< Summary

Information
Class: Elsa.Mediator.Contexts.NotificationStrategyContext
Assembly: Elsa.Mediator
File(s): /home/runner/work/elsa-core/elsa-core/src/common/Elsa.Mediator/Contexts/NotificationStrategyContext.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_NotificationContext()100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/common/Elsa.Mediator/Contexts/NotificationStrategyContext.cs

#LineLine coverage
 1using Elsa.Mediator.Contracts;
 2using Elsa.Mediator.Middleware.Notification;
 3using Microsoft.Extensions.Logging;
 4
 5namespace Elsa.Mediator.Contexts;
 6
 7/// <summary>
 8/// Represents a context for publishing events.
 9/// </summary>
 10/// <param name="NotificationContext">The notification to publish.</param>
 11/// <param name="Handlers">The handlers to publish the notification to.</param>
 12/// <param name="Logger">The logger.</param>
 13/// <param name="ServiceProvider">The service provider to resolve services from.</param>
 14/// <param name="CancellationToken">The cancellation token.</param>
 4668115public record NotificationStrategyContext(NotificationContext NotificationContext, INotificationHandler[] Handlers, ILog

Methods/Properties

get_NotificationContext()