public override void LoadPluginWatchers(string pluginDirectory) { var dllWatcher = new DllLoaderWatcher(pluginDirectory); _pluginsLoader.SetWatcher(dllWatcher); Manager.RegisterPluginChangeWatcher(dllWatcher.Watcher); }
public void SetWatcher(DllLoaderWatcher dllWatcher) { LogDebug($"SetWatcher({dllWatcher})"); if (_watcher != null) { _watcher.OnGetPluginsInFile -= OnGetPluginsInFile; } _watcher = dllWatcher; _watcher.OnGetPluginsInFile += OnGetPluginsInFile; }