add doc workflow

This commit is contained in:
qianlifeng
2014-01-24 20:01:20 +08:00
parent af954a0578
commit 0ac7d9829a
12 changed files with 504 additions and 1 deletions

View File

@@ -20,7 +20,8 @@ namespace WinAlfred.PluginLoader
{
try
{
Assembly asm = Assembly.LoadFile(metadata.ExecuteFilePath);
byte[] buffer = System.IO.File.ReadAllBytes(metadata.ExecuteFilePath);
Assembly asm = Assembly.Load(buffer);
List<Type> types = asm.GetTypes().Where(o => o.IsClass && o.GetInterfaces().Contains(typeof(IPlugin)) || o.GetInterfaces().Contains(typeof(ISystemPlugin))).ToList();
if (types.Count == 0)
{