< Summary

Information
Class: ProjectTemplate.Web.Options.FixedWindowRateLimitingOptions
Assembly: ProjectTemplate.Web
File(s): /home/runner/work/NetCoreApplicationTemplate/NetCoreApplicationTemplate/src/ProjectTemplate.Web/Options/FixedWindowRateLimitingOptions.cs
Line coverage
100%
Covered lines: 3
Uncovered lines: 0
Coverable lines: 3
Total lines: 22
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_PermitLimit()100%11100%
get_WindowSeconds()100%11100%
get_QueueLimit()100%11100%

File(s)

/home/runner/work/NetCoreApplicationTemplate/NetCoreApplicationTemplate/src/ProjectTemplate.Web/Options/FixedWindowRateLimitingOptions.cs

#LineLine coverage
 1namespace ProjectTemplate.Web.Options;
 2
 3/// <summary>
 4/// Represents fixed-window rate limiting configuration.
 5/// </summary>
 6public sealed class FixedWindowRateLimitingOptions
 7{
 8    /// <summary>
 9    /// Maximum number of permits allowed per window.
 10    /// </summary>
 425011    public int PermitLimit { get; set; } = 60;
 12
 13    /// <summary>
 14    /// Length of the fixed window in seconds.
 15    /// </summary>
 425016    public int WindowSeconds { get; set; } = 60;
 17
 18    /// <summary>
 19    /// Maximum number of requests allowed to queue when the permit limit is reached.
 20    /// </summary>
 321021    public int QueueLimit { get; set; }
 22}