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
typeProvidersIInstancesOf<ICanProvideSecurityMetadataForType>Type providers.
propertyProvidersIInstancesOf<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
propertyPropertyInfoPropertyInfo 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
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
propertyPropertyInfoPropertyInfo 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
Returns
- bool
True if it has, false if not.