< Summary - AsyncResponse (Release / net8.0+net10.0 / unit+integration)

Information
Class: AsyncResponse.InMemoryAsyncResponseOptions
Assembly: AsyncResponse.Core
File(s): /home/runner/work/AsyncResponse/AsyncResponse/src/AsyncResponse.Core/InMemoryAsyncResponseOptions.cs
Line coverage
100%
Covered lines: 3
Uncovered lines: 0
Coverable lines: 3
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
.ctor()100%11100%

File(s)

/home/runner/work/AsyncResponse/AsyncResponse/src/AsyncResponse.Core/InMemoryAsyncResponseOptions.cs

#LineLine coverage
 1namespace AsyncResponse;
 2
 3/// <summary>
 4/// Options for the process-local response channel registered by
 5/// <c>AddAsyncResponse().WithInMemoryChannel()</c>. Waiters, subscriptions, and recovery state
 6/// all live in memory and disappear when the process exits.
 7/// </summary>
 8public sealed class InMemoryAsyncResponseOptions : AsyncResponseChannelOptions
 9{
 10    /// <summary>Runs the InMemoryAsyncResponseOptions operation.</summary>
 211    public InMemoryAsyncResponseOptions()
 12    {
 13        // Process-local recovery state is not durable (entries are lost on exit), so a short default
 14        // keeps stale state from lingering — unlike the durable channels' 7-day default.
 215        RecoveryStateExpiry = TimeSpan.FromMinutes(30);
 216    }
 17}

Methods/Properties

.ctor()