Exemple #1
0
        public void LoadPlugins()
        {
            var plugins = Plugins.GetPlugins <IPostDbRestore>();

            PostRestorePlugins.AddRange(plugins.Select(r => r.Value.PluginName));

            var utilities = Plugins.GetPlugins <IDbUtility>();

            Utilities.AddRange(utilities.Select(r => r.Value.PluginName));

            var settings = Plugins.GetPlugins <IDbRestorerSettings>();

            PluginSettings.AddRange(settings.Select(r => r.Value.Name));
        }