< Summary

Information
Class: Elsa.Mediator.Middleware.Command.CommandPipelineBuilderExtensions
Assembly: Elsa.Mediator
File(s): /home/runner/work/elsa-core/elsa-core/src/common/Elsa.Mediator/Middleware/Command/CommandPipelineBuilderExtensions.cs
Line coverage
100%
Covered lines: 2
Uncovered lines: 0
Coverable lines: 2
Total lines: 24
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
UseCommandInvoker(...)100%11100%
UseCommandLogging(...)100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/common/Elsa.Mediator/Middleware/Command/CommandPipelineBuilderExtensions.cs

#LineLine coverage
 1using Elsa.Mediator.Middleware.Command.Contracts;
 2using Elsa.Mediator.Middleware.Command.Components;
 3
 4namespace Elsa.Mediator.Middleware.Command;
 5
 6/// <summary>
 7/// Provides extension methods for <see cref="ICommandPipelineBuilder"/>.
 8/// </summary>
 9public static class CommandPipelineBuilderExtensions
 10{
 11    /// <summary>
 12    /// Adds the <see cref="CommandHandlerInvokerMiddleware"/> to the pipeline.
 13    /// </summary>
 14    /// <param name="builder">The pipeline builder.</param>
 15    /// <returns>The pipeline builder.</returns>
 116    public static ICommandPipelineBuilder UseCommandInvoker(this ICommandPipelineBuilder builder) => builder.UseMiddlewa
 17
 18    /// <summary>
 19    /// Adds the <see cref="CommandLoggingMiddleware"/> to the pipeline.
 20    /// </summary>
 21    /// <param name="builder">The pipeline builder.</param>
 22    /// <returns>The pipeline builder.</returns>
 123    public static ICommandPipelineBuilder UseCommandLogging(this ICommandPipelineBuilder builder) => builder.UseMiddlewa
 24}