< Summary

Information
Class: Elsa.Mediator.Options.MediatorOptions
Assembly: Elsa.Mediator
File(s): /home/runner/work/elsa-core/elsa-core/src/common/Elsa.Mediator/Options/MediatorOptions.cs
Line coverage
100%
Covered lines: 5
Uncovered lines: 0
Coverable lines: 5
Total lines: 34
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_CommandWorkerCount()100%11100%
get_NotificationWorkerCount()100%11100%
get_JobWorkerCount()100%11100%
get_DefaultPublishingStrategy()100%11100%
get_DefaultCommandStrategy()100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/common/Elsa.Mediator/Options/MediatorOptions.cs

#LineLine coverage
 1using Elsa.Mediator.Contracts;
 2
 3namespace Elsa.Mediator.Options;
 4
 5/// <summary>
 6/// Options for the mediator.
 7/// </summary>
 8public class MediatorOptions
 9{
 10    /// <summary>
 11    /// The max number of workers to process commands.
 12    /// </summary>
 213    public int CommandWorkerCount { get; set; } = 4;
 14
 15    /// <summary>
 16    /// The max number of workers to process notifications.
 17    /// </summary>
 218    public int NotificationWorkerCount { get; set; } = 4;
 19
 20    /// <summary>
 21    /// The max number of workers to process jobs.
 22    /// </summary>
 223    public int JobWorkerCount { get; set; } = 4;
 24
 25    /// <summary>
 26    /// The default publishing strategy to use.
 27    /// </summary>
 32328    public IEventPublishingStrategy DefaultPublishingStrategy { get; set; } = NotificationStrategy.Sequential;
 29
 30    /// <summary>
 31    /// The default command strategy to use.
 32    /// </summary>
 32333    public ICommandStrategy DefaultCommandStrategy { get; set; } = CommandStrategy.Default;
 34}