< Summary

Information
Class: ToolCore.McpHost.McpHostSupervisorOptions
Assembly: ToolCore
File(s): /home/runner/work/InvAit/InvAit/ToolCore/McpHost/McpHostSupervisorOptions.cs
Tag: 194_44631168438
Line coverage
0%
Covered lines: 0
Uncovered lines: 1
Coverable lines: 1
Total lines: 29
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
CreateDefault(...)100%210%

File(s)

/home/runner/work/InvAit/InvAit/ToolCore/McpHost/McpHostSupervisorOptions.cs

#LineLine coverage
 1namespace ToolCore.McpHost;
 2
 3public sealed class McpHostSupervisorOptions
 4{
 5    public string HostExecutablePath { get; set; } = string.Empty;
 6
 7    public string? PipeName { get; set; }
 8
 9    public bool SkipRuntimeCheck { get; set; }
 10
 11    public TimeSpan StartTimeout { get; set; } = TimeSpan.FromSeconds(15);
 12
 13    public TimeSpan PingInterval { get; set; } = TimeSpan.FromSeconds(5);
 14
 15    public TimeSpan PingTimeout { get; set; } = TimeSpan.FromSeconds(5);
 16
 17    public int PingFailureThreshold { get; set; } = 3;
 18
 19    public TimeSpan RequestTimeout { get; set; } = TimeSpan.FromSeconds(30);
 20
 21    public TimeSpan RestartBaseDelay { get; set; } = TimeSpan.FromSeconds(1);
 22
 23    public TimeSpan RestartMaxDelay { get; set; } = TimeSpan.FromSeconds(30);
 24
 25    /// <summary>Mirror of the host-side --idle-exit-ms safety belt.</summary>
 26    public int HostIdleExitMs { get; set; } = 60_000;
 27
 028    public static McpHostSupervisorOptions CreateDefault(string hostPath) => new() { HostExecutablePath = hostPath };
 29}

Methods/Properties

CreateDefault(System.String)