| | | 1 | | namespace AsiBackbone.Core.Metadata; |
| | | 2 | | |
| | | 3 | | /// <summary> |
| | | 4 | | /// Provides normalized governance metadata to a provider-neutral metadata classifier. |
| | | 5 | | /// </summary> |
| | | 6 | | public sealed class GovernanceMetadataClassificationContext |
| | | 7 | | { |
| | | 8 | | /// <summary> |
| | | 9 | | /// Initializes a new instance of the <see cref="GovernanceMetadataClassificationContext" /> class. |
| | | 10 | | /// </summary> |
| | | 11 | | /// <param name="key">The normalized metadata key being classified.</param> |
| | | 12 | | /// <param name="value">The normalized metadata value being classified.</param> |
| | | 13 | | /// <param name="metadata">The complete normalized metadata collection available for contextual classification.</par |
| | 28 | 14 | | public GovernanceMetadataClassificationContext( |
| | 28 | 15 | | string key, |
| | 28 | 16 | | string value, |
| | 28 | 17 | | IReadOnlyDictionary<string, string> metadata) |
| | | 18 | | { |
| | 28 | 19 | | ArgumentException.ThrowIfNullOrWhiteSpace(key); |
| | 22 | 20 | | ArgumentNullException.ThrowIfNull(value); |
| | 20 | 21 | | ArgumentNullException.ThrowIfNull(metadata); |
| | | 22 | | |
| | 18 | 23 | | Key = key; |
| | 18 | 24 | | Value = value; |
| | 18 | 25 | | Metadata = metadata; |
| | 18 | 26 | | } |
| | | 27 | | |
| | | 28 | | /// <summary> |
| | | 29 | | /// Gets the normalized metadata key being classified. |
| | | 30 | | /// </summary> |
| | 4 | 31 | | public string Key { get; } |
| | | 32 | | |
| | | 33 | | /// <summary> |
| | | 34 | | /// Gets the normalized metadata value being classified. |
| | | 35 | | /// </summary> |
| | 6 | 36 | | public string Value { get; } |
| | | 37 | | |
| | | 38 | | /// <summary> |
| | | 39 | | /// Gets the complete normalized metadata collection available for contextual classification. |
| | | 40 | | /// </summary> |
| | | 41 | | /// <remarks> |
| | | 42 | | /// Classifiers must treat this collection as read-only and must not place raw sensitive values into returned reason |
| | | 43 | | /// </remarks> |
| | 2 | 44 | | public IReadOnlyDictionary<string, string> Metadata { get; } |
| | | 45 | | } |