Table of Contents

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

property PropertyInfo

PropertyInfo 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

type Type

Type to get for.

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

property PropertyInfo

PropertyInfo 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

type Type

Type to check.

Returns

bool

True if it has, false if not.