C# Class KMCCC.Modules.JVersion.NewJVersionLocator

默认的版本定位器
Inheritance: IVersionLocator
ファイルを表示 Open project: cvronmin/metocraft

Public Methods

Method Description
GetAllVersions ( ) : IEnumerable
IfAllowed ( List rules ) : bool

判断一系列规则后是否启用

LoadVersion ( string jsonPath ) : KMCCC.Modules.JVersion.JVersion
Locate ( string id ) : Version
NewJVersionLocator ( ) : System.Collections.Generic

Private Methods

Method Description
GetVersionInternal ( string id ) : Version

获取Version信息,当出现错误时会返回null

Method Details

GetAllVersions() public method

public GetAllVersions ( ) : IEnumerable
return IEnumerable

IfAllowed() public method

判断一系列规则后是否启用
public IfAllowed ( List rules ) : bool
rules List 规则们
return bool

LoadVersion() public method

public LoadVersion ( string jsonPath ) : KMCCC.Modules.JVersion.JVersion
jsonPath string
return KMCCC.Modules.JVersion.JVersion

Locate() public method

public Locate ( string id ) : Version
id string
return Version

NewJVersionLocator() public method

public NewJVersionLocator ( ) : System.Collections.Generic
return System.Collections.Generic