< Summary

Information
Class: Elsa.Http.Options.HttpFileCacheOptions
Assembly: Elsa.Http
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Http/Options/HttpFileCacheOptions.cs
Line coverage
100%
Covered lines: 2
Uncovered lines: 0
Coverable lines: 2
Total lines: 17
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_TimeToLive()100%11100%
get_LocalCacheDirectory()100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Http/Options/HttpFileCacheOptions.cs

#LineLine coverage
 1namespace Elsa.Http.Options;
 2
 3/// <summary>
 4/// Provides options for the HTTP file cache.
 5/// </summary>
 6public class HttpFileCacheOptions
 7{
 8    /// <summary>
 9    /// The time to live for cached files.
 10    /// </summary>
 5611    public TimeSpan TimeToLive { get; set; } = TimeSpan.FromDays(7);
 12
 13    /// <summary>
 14    /// The local cache directory. Defaults to the system's temp directory.
 15    /// </summary>
 2816    public string LocalCacheDirectory { get; set; } = Path.GetTempPath();
 17}