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; }
public PluginSourceDownloader(string sourceDirectory, PluginsUpdateSettings pluginsUpdateSettings) { SourceDirectory = sourceDirectory ?? throw new ArgumentNullException(nameof(sourceDirectory)); PluginsUpdateSettings = pluginsUpdateSettings ?? throw new ArgumentNullException(nameof(pluginsUpdateSettings)); }