| | 1 | | namespace Pozitron.QuerySpecification; |
| | 2 | |
|
| | 3 | | /// <summary> |
| | 4 | | /// Specifies whether auto discovery for evaluators and validators is enabled. |
| | 5 | | /// </summary> |
| | 6 | | [AttributeUsage(AttributeTargets.Assembly)] |
| | 7 | | public sealed class SpecAutoDiscoveryAttribute : Attribute |
| | 8 | | { |
| | 9 | | } |
| | 10 | |
|
| | 11 | | /// <summary> |
| | 12 | | /// Specifies discovery options for evaluators and validators, such as the order and whether discovery is enabled. |
| | 13 | | /// </summary> |
| | 14 | | [AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = false)] |
| | 15 | | public class DiscoveryAttribute : Attribute |
| | 16 | | { |
| | 17 | | /// <summary> |
| | 18 | | /// Gets the order in which the evaluator/validator should be applied. Lower values are applied first. |
| | 19 | | /// </summary> |
| 184 | 20 | | public int Order { get; set; } = int.MaxValue; |
| | 21 | |
|
| | 22 | | /// <summary> |
| | 23 | | /// Gets a value indicating whether the evaluator/validator is discoverable. |
| | 24 | | /// </summary> |
| 168 | 25 | | public bool Enable { get; set; } = true; |
| | 26 | | } |
| | 27 | |
|
| | 28 | | /// <summary> |
| | 29 | | /// Specifies discovery options for evaluators, such as the order and whether discovery is enabled. |
| | 30 | | /// </summary> |
| | 31 | | public sealed class EvaluatorDiscoveryAttribute : DiscoveryAttribute |
| | 32 | | { |
| | 33 | | } |
| | 34 | |
|
| | 35 | | /// <summary> |
| | 36 | | /// Specifies discovery options for validators, such as the order and whether discovery is enabled. |
| | 37 | | /// </summary> |
| | 38 | | public sealed class ValidatorDiscoveryAttribute : DiscoveryAttribute |
| | 39 | | { |
| | 40 | | } |