Esempio n. 1
0
        public static void LoadAndRegisterAssemblyPlugins(string pattern)
        {
            try
            {
                ILocalFileMirror fm = Catalog.Factory.Resolve <ILocalFileMirror>();

                var plugins = from f in Directory.EnumerateFiles(fm.TargetPath, pattern)
                              let a = TryLoadAssembly(f)
                                      where a != null
                                      select a;

                plugins.ForEach(p => Catalog.LoadFromAssembly(p));
            }
            catch
            {
            }
        }
Esempio n. 2
0
 public PayPalEncryptedButton()
 {
     _config = Catalog.Factory.Resolve <IConfig>();
     _mirror = Catalog.Factory.Resolve <ILocalFileMirror>();
 }