< Summary

Information
Class: MyNet.Utilities.Caching.ExpiredEventArgs<T1, T2>
Assembly: MyNet.Utilities
File(s): https://raw.githubusercontent.com/sandre58/MyNet/85372080fe102cd9ee155ceab49ae000e7f66103/src/MyNet.Utilities/Caching/ExpiredEventArgs.cs
Tag: 323_28699572109
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
Total lines: 43
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)

https://raw.githubusercontent.com/sandre58/MyNet/85372080fe102cd9ee155ceab49ae000e7f66103/src/MyNet.Utilities/Caching/ExpiredEventArgs.cs

#LineLine coverage
 1// -----------------------------------------------------------------------
 2// <copyright file="ExpiredEventArgs.cs" company="Stéphane ANDRE">
 3// Copyright (c) Stéphane ANDRE. All rights reserved.
 4// </copyright>
 5// -----------------------------------------------------------------------
 6
 7using System;
 8
 9namespace MyNet.Utilities.Caching;
 10
 11/// <summary>
 12/// The expired event args.
 13/// </summary>
 14/// <typeparam name="TKey">The key type.</typeparam>
 15/// <typeparam name="TValue">The value type.</typeparam>
 16/// <remarks>
 17/// Initializes a new instance of the <see cref="ExpiredEventArgs{TKey, TValue}" /> class.
 18/// </remarks>
 19/// <param name="key">The key.</param>
 20/// <param name="value">The value.</param>
 21/// <param name="dispose">The value indicating whether the expired value should be disposed after removal from cache.</p
 622public class ExpiredEventArgs<TKey, TValue>(TKey key, TValue value, bool dispose) : EventArgs
 23{
 24    /// <summary>
 25    /// Gets or sets a value indicating whether the expired value should be disposed after removal from cache.
 26    /// </summary>
 27    /// <value><c>true</c> if item should be disposed; otherwise, <c>false</c>.</value>
 28    /// <remarks>Current value of this property is equal to <see cref="ICacheStorage{TKey, TValue}.DisposeValuesOnRemova
 629    public bool Dispose { get; set; } = dispose;
 30
 31    /// <summary>
 32    /// Gets the key.
 33    /// </summary>
 34    /// <value>The key.</value>
 635    public TKey Key { get; private set; } = key;
 36
 37    /// <summary>
 38    /// Gets the value.
 39    /// </summary>
 40    /// <value>The value.</value>
 641    public TValue Value { get; private set; } = value;
 42}
 43