Interface IComplianceMetadataResolver
- Namespace
- Cratis.Chronicle.Compliance
- Assembly
- Cratis.Chronicle.dll
Defines a resolver of ComplianceMetadata for types and properties.
public interface IComplianceMetadataResolver
Methods
GetMetadataFor(PropertyInfo)
Get the ComplianceMetadata associated with a PropertyInfo.
IEnumerable<ComplianceMetadata> GetMetadataFor(PropertyInfo property)
Parameters
propertyPropertyInfoPropertyInfo to get for.
Returns
- IEnumerable<ComplianceMetadata>
Collection of ComplianceMetadata associated with the type.
GetMetadataFor(Type)
Get the ComplianceMetadata associated with a Type.
IEnumerable<ComplianceMetadata> GetMetadataFor(Type type)
Parameters
Returns
- IEnumerable<ComplianceMetadata>
Collection of ComplianceMetadata associated with the type.
HasMetadataFor(PropertyInfo)
Check whether or not a specific PropertyInfo has any ComplianceMetadata associated with it.
bool HasMetadataFor(PropertyInfo property)
Parameters
propertyPropertyInfoPropertyInfo to check.
Returns
- bool
True if it has, false if not.
HasMetadataFor(Type)
Check whether or not a specific Type has any ComplianceMetadata associated with it.
bool HasMetadataFor(Type type)
Parameters
Returns
- bool
True if it has, false if not.