diff --git a/src/Core/Billing/Licenses/Attributes/LicenseIgnoreAttribute.cs b/src/Core/Billing/Licenses/Attributes/LicenseIgnoreAttribute.cs new file mode 100644 index 0000000000..628bb1b558 --- /dev/null +++ b/src/Core/Billing/Licenses/Attributes/LicenseIgnoreAttribute.cs @@ -0,0 +1,12 @@ +namespace Bit.Core.Billing.Licenses.Attributes; + +[AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)] +public class LicenseIgnoreAttribute(bool includeInHash = true) : Attribute +{ + + /// + /// 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. + /// + public bool IncludeInHash { get; } = includeInHash; +}