C# Class cadencii.PluginLoader

プラグインファイルを読み込み、コンパイルするクラス
Exibir arquivo Open project: cadencii/cadencii Class Usage Examples

Public Methods

Method Description
cleanupUnusedAssemblyCache ( ) : void

使用されていないアセンブリのキャッシュを削除します

compileScript ( string code, List errors ) : Assembly
loadScript ( String file ) : ScriptInvoker

指定されたファイルを読み込んでスクリプトをコンパイルします.

Private Methods

Method Description
_ ( string id ) : string
createPluginCode ( string code ) : string

ファイルから読み込んだプラグインのソースコードに適切な prefix, suffix コードを挿入したソースコードを作成する

estimateVersionByCode ( string code ) : PluginVersion

プラグインのソースコード文面から、プラグインのバージョンを推定する

isValidCachedAssembly ( Assembly assembly ) : bool

キャシュから読み込んだアセンブリが、このバージョンの Cadencii で使えるかどうかを調べる

Method Details

cleanupUnusedAssemblyCache() public static method

使用されていないアセンブリのキャッシュを削除します
public static cleanupUnusedAssemblyCache ( ) : void
return void

compileScript() public method

public compileScript ( string code, List errors ) : Assembly
code string
errors List
return System.Reflection.Assembly

loadScript() public method

指定されたファイルを読み込んでスクリプトをコンパイルします.
public loadScript ( String file ) : ScriptInvoker
file String スクリプトを発動するのに使用するコンテナを返します.
return ScriptInvoker