< Summary

Information
Class: Elsa.Hosting.Management.Options.HeartbeatOptions
Assembly: Elsa.Hosting.Management
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Hosting.Management/Options/HeartbeatOptions.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 2
Coverable lines: 2
Total lines: 17
Line coverage: 0%
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_Interval()100%210%
get_Timeout()100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Hosting.Management/Options/HeartbeatOptions.cs

#LineLine coverage
 1namespace Elsa.Hosting.Management.Options;
 2
 3/// <summary>
 4/// Represents the options for the application heartbeat feature.
 5/// </summary>
 6public class HeartbeatOptions
 7{
 8    /// <summary>
 9    /// Gets or sets the interval at which the heartbeat should be sent.
 10    /// </summary>
 011    public TimeSpan Interval { get; set; } = TimeSpan.FromMinutes(1);
 12
 13    /// <summary>
 14    /// Gets or sets the timeout for the heartbeat. When the heartbeat is not received within this time, the instance is
 15    /// </summary>
 016    public TimeSpan Timeout { get; set; } = TimeSpan.FromHours(1);
 17}

Methods/Properties

get_Interval()
get_Timeout()