-
Notifications
You must be signed in to change notification settings - Fork 20
Components Manager
SO HYUN SEOP edited this page Mar 25, 2018
·
2 revisions
프레임워크 모듈 관리를 지원하는 라이브러리 입니다.
확장 모듈을 검색하고 사용할 수 있도록 합니다.
var extension = new ExtensionManager(@"C:\Extensions");
foreach (var target in extension.Extensions)
{
foreach (BaseBlock block in extension.ConvertToBlocks(target))
{
block.IsPreview = true;
listBlock.Items.Add(block);
}
}위와 같은 방법으로 확장 모듈 관리자를 사용할 수 있습니다. ExtensionManager의 Extensions 리스트에는 초기화된 경로에서 로드된 모듈의 목록이 제공되며 ConvertToBlocks 함수를 통해 확장 모듈에 있는 함수를 블록 형태의 배열로 변환할 수 있습니다.