C# Class CodeSharp.EventSourcing.DefaultTypeNameMappingProvider

默认的类型与名称映射信息提供者
Inheritance: ITypeNameMappingProvider
Show file Open project: tangxuehua/eventsourcing

Public Methods

Method Description
DefaultTypeNameMappingProvider ( IEventTypeProvider eventTypeProvider, ISnapshotTypeProvider snapshotTypeProvider ) : System
GetName ( NameTypeMappingType mappingType, Type type ) : string
GetType ( NameTypeMappingType mappingType, string name ) : Type
IsNameExist ( NameTypeMappingType mappingType, string name ) : bool
IsTypeExist ( NameTypeMappingType mappingType, Type type ) : bool
RegisterMapping ( NameTypeMappingType mappingType, string name, Type type ) : void
RegisterMappings ( NameTypeMappingType mappingType ) : void

Private Methods

Method Description
GetMappingDictionary ( NameTypeMappingType mappingType ) : Type>.IDictionary

根据映射种类获取一个存放了类型与其名称之间映射关系的字典

Method Details

DefaultTypeNameMappingProvider() public method

public DefaultTypeNameMappingProvider ( IEventTypeProvider eventTypeProvider, ISnapshotTypeProvider snapshotTypeProvider ) : System
eventTypeProvider IEventTypeProvider
snapshotTypeProvider ISnapshotTypeProvider
return System

GetName() public method

public GetName ( NameTypeMappingType mappingType, Type type ) : string
mappingType NameTypeMappingType
type System.Type
return string

GetType() public method

public GetType ( NameTypeMappingType mappingType, string name ) : Type
mappingType NameTypeMappingType
name string
return System.Type

IsNameExist() public method

public IsNameExist ( NameTypeMappingType mappingType, string name ) : bool
mappingType NameTypeMappingType
name string
return bool

IsTypeExist() public method

public IsTypeExist ( NameTypeMappingType mappingType, Type type ) : bool
mappingType NameTypeMappingType
type System.Type
return bool

RegisterMapping() public method

public RegisterMapping ( NameTypeMappingType mappingType, string name, Type type ) : void
mappingType NameTypeMappingType
name string
type System.Type
return void

RegisterMappings() public method

public RegisterMappings ( NameTypeMappingType mappingType ) : void
mappingType NameTypeMappingType
return void