1
0
mirror of https://github.com/bitwarden/server.git synced 2025-05-22 12:04:27 -05:00

Created LicenseIgnoreAttribute

This commit is contained in:
Conner Turnbull 2025-05-20 13:47:17 -04:00
parent ea2ed551cc
commit 59c1994fde
No known key found for this signature in database

View File

@ -0,0 +1,12 @@
namespace Bit.Core.Billing.Licenses.Attributes;
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
public class LicenseIgnoreAttribute(bool includeInHash = true) : Attribute
{
/// <summary>
/// If true, the property will be included when computing the license hash, but ignored for other operations.
/// If false, the property will be completely ignored including for hash computation.
/// </summary>
public bool IncludeInHash { get; } = includeInHash;
}