< Summary

Information
Class: System.Net.WebSockets.WebSocketDefaults
Assembly: System.Net.WebSockets
File(s): D:\runner\runtime\src\libraries\Common\src\System\Net\WebSockets\WebSocketDefaults.cs
Line coverage
100%
Covered lines: 3
Uncovered lines: 0
Coverable lines: 3
Total lines: 19
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 Cyclomatic complexity NPath complexity Sequence coverage
.cctor()100%11100%

File(s)

D:\runner\runtime\src\libraries\Common\src\System\Net\WebSockets\WebSocketDefaults.cs

#LineLine coverage
 1// Licensed to the .NET Foundation under one or more agreements.
 2// The .NET Foundation licenses this file to you under the MIT license.
 3
 4using System.Threading;
 5
 6namespace System.Net.WebSockets
 7{
 8    /// <summary>
 9    /// Central repository for default values used in WebSocket settings.  Not all settings are relevant
 10    /// to or configurable by all WebSocket implementations.
 11    /// </summary>
 12    internal static partial class WebSocketDefaults
 13    {
 114        public static readonly TimeSpan DefaultKeepAliveInterval = TimeSpan.Zero;
 115        public static readonly TimeSpan DefaultClientKeepAliveInterval = TimeSpan.FromSeconds(30);
 16
 117        public static readonly TimeSpan DefaultKeepAliveTimeout = Timeout.InfiniteTimeSpan;
 18    }
 19}

Methods/Properties

.cctor()