Beispiel #1
0
 private static void ConfigOtherFolderGrainLoad(IApplicationPartManager applicationPartManager, IEnumerable <string> pathsList, Func <string, string> pathResolveFunc)
 {
     foreach (var path in pathsList)
     {
         var dllFileInfo = new FileInfo(pathResolveFunc(path));
         var assembly    = Assembly.LoadFile(dllFileInfo.FullName);
         applicationPartManager.AddDynamicPart(assembly);
     }
 }