Class SecurityMetadataResolver

Namespace
Cratis.Chronicle.Confidentiality
Assembly
Cratis.Chronicle.dll

Represents an implementation of ISecurityMetadataResolver.

public class SecurityMetadataResolver : ISecurityMetadataResolver
Inheritance
SecurityMetadataResolver
Implements
Inherited Members
Extension Methods

Remarks

Initializes a new instance of the SecurityMetadataResolver.

Constructors

SecurityMetadataResolver(IInstancesOf<ICanProvideSecurityMetadataForType>, IInstancesOf<ICanProvideSecurityMetadataForProperty>)

Represents an implementation of ISecurityMetadataResolver.

public SecurityMetadataResolver(IInstancesOf<ICanProvideSecurityMetadataForType> typeProviders, IInstancesOf<ICanProvideSecurityMetadataForProperty> propertyProviders)

Parameters

typeProviders IInstancesOf<ICanProvideSecurityMetadataForType>

Type providers.

propertyProviders IInstancesOf<ICanProvideSecurityMetadataForProperty>

Property providers.

Remarks

Initializes a new instance of the SecurityMetadataResolver.

Methods

GetMetadataFor(PropertyInfo)

Get the SecurityMetadata associated with a PropertyInfo.

public IEnumerable<SecurityMetadata> GetMetadataFor(PropertyInfo property)

Parameters

property PropertyInfo

PropertyInfo to get for.

Returns

IEnumerable<SecurityMetadata>

Collection of SecurityMetadata associated with the type.

GetMetadataFor(Type)

Get the SecurityMetadata associated with a Type.

public IEnumerable<SecurityMetadata> GetMetadataFor(Type type)

Parameters

type Type

Type to get for.

Returns

IEnumerable<SecurityMetadata>

Collection of SecurityMetadata associated with the type.

HasMetadataFor(PropertyInfo)

Check whether or not a specific PropertyInfo has any SecurityMetadata associated with it.

public 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 SecurityMetadata associated with it.

public bool HasMetadataFor(Type type)

Parameters

type Type

Type to check.

Returns

bool

True if it has, false if not.