示例#1
0
        public PluginUpdater(
            PluginsUpdateSettings pluginUpdateSettings,
            string rootDirectory,
            string compiledPluginsDirectory,
            string sourcePluginsDirectory,
            PluginLoader pluginLoader)
        {
            PluginsUpdateSettings    = pluginUpdateSettings ?? throw new ArgumentNullException(nameof(pluginUpdateSettings));
            RootDirectory            = rootDirectory ?? throw new ArgumentNullException(nameof(rootDirectory));
            CompiledPluginsDirectory = compiledPluginsDirectory ?? throw new ArgumentNullException(nameof(compiledPluginsDirectory));
            SourcePluginsDirectory   = sourcePluginsDirectory ?? throw new ArgumentNullException(nameof(sourcePluginsDirectory));

            PluginFilter           = new PluginFilter();
            PluginSourceDownloader = new PluginSourceDownloader(SourcePluginsDirectory, pluginUpdateSettings);
            PluginLoader           = pluginLoader;
        }
示例#2
0
 public PluginSourceDownloader(string sourceDirectory, PluginsUpdateSettings pluginsUpdateSettings)
 {
     SourceDirectory       = sourceDirectory ?? throw new ArgumentNullException(nameof(sourceDirectory));
     PluginsUpdateSettings = pluginsUpdateSettings ?? throw new ArgumentNullException(nameof(pluginsUpdateSettings));
 }