コード例 #1
0
        private AggregateCatalog CreatePluginCatalog(PluginLoaderConfiguration pluginLoaderConfiguration)
        {
            var pluginsCatalog = new AggregateCatalog();

            foreach (var pluginDirectory in GetPluginDirectories(pluginLoaderConfiguration.PluginsRootLocation))
            {
                pluginsCatalog.Catalogs.Add(new DirectoryCatalog(pluginDirectory));
            }

            return pluginsCatalog;
        }
コード例 #2
0
        private AggregateCatalog CreatePluginCatalog(PluginLoaderConfiguration pluginLoaderConfiguration)
        {
            var pluginsCatalog = new AggregateCatalog();

            foreach (var pluginDirectory in GetPluginDirectories(pluginLoaderConfiguration.PluginsRootLocation))
            {
                pluginsCatalog.Catalogs.Add(new DirectoryCatalog(pluginDirectory));
            }

            return(pluginsCatalog);
        }
コード例 #3
0
        public PluginLoadingManager(PluginLoaderConfiguration pluginLoaderConfiguration)
        {
            var catalogue = CreatePluginCatalog(pluginLoaderConfiguration);

            CreateCompositionContainer(catalogue);
        }
コード例 #4
0
        public PluginLoadingManager(PluginLoaderConfiguration pluginLoaderConfiguration)
        {
            var catalogue = CreatePluginCatalog(pluginLoaderConfiguration);

            CreateCompositionContainer(catalogue);
        }