C# Class Rebel.Framework.Persistence.DefaultAttributeTypeRegistry

A default threadsafe IAttributeTypeRegistry
> By default, this class includes all of the system AttributeType's registered with default (blank) RenderTypeProvider information
Inheritance: IAttributeTypeRegistry
Exibir arquivo Open project: RebelCMS/rebelcmsxu5 Class Usage Examples

Public Methods

Method Description
DefaultAttributeTypeRegistry ( ) : System

Ensures all known types are registered on construcion

GetAllRegisteredAliases ( ) : IEnumerable
GetAttributeType ( string alias ) : AttributeType

Gets the AttributeType by alias

RegisterAttributeType ( Func attributeType ) : void

Registers or updates an AttributeType in the registry

TryGetAttributeType ( string alias ) : AttemptTuple

Tries to get an AttributeType by alias.

Protected Methods

Method Description
RegisterDefaultTypes ( ) : void

Called one time to register default types for the class instance before any AttributeType's get resolved or Registered.

RegisterSystemAttributeTypes ( ) : void

Called by RegisterDefaultTypes to register all build in system types

Private Methods

Method Description
EnsureDefaultRegistrations ( ) : void

Ensures all known types are registered

Method Details

DefaultAttributeTypeRegistry() public method

Ensures all known types are registered on construcion
public DefaultAttributeTypeRegistry ( ) : System
return System

GetAllRegisteredAliases() public method

public GetAllRegisteredAliases ( ) : IEnumerable
return IEnumerable

GetAttributeType() public method

Gets the AttributeType by alias
public GetAttributeType ( string alias ) : AttributeType
alias string The alias.
return AttributeType

RegisterAttributeType() public method

Registers or updates an AttributeType in the registry
public RegisterAttributeType ( Func attributeType ) : void
attributeType Func the AttributeType.
return void

RegisterDefaultTypes() protected method

Called one time to register default types for the class instance before any AttributeType's get resolved or Registered.
protected RegisterDefaultTypes ( ) : void
return void

RegisterSystemAttributeTypes() protected method

Called by RegisterDefaultTypes to register all build in system types
protected RegisterSystemAttributeTypes ( ) : void
return void

TryGetAttributeType() public method

Tries to get an AttributeType by alias.
public TryGetAttributeType ( string alias ) : AttemptTuple
alias string The alias.
return AttemptTuple