public override void LoadPluginWatchers(string pluginDirectory)
        {
            var dllWatcher = new DllLoaderWatcher(pluginDirectory);

            _pluginsLoader.SetWatcher(dllWatcher);
            Manager.RegisterPluginChangeWatcher(dllWatcher.Watcher);
        }
예제 #2
0
        public void SetWatcher(DllLoaderWatcher dllWatcher)
        {
            LogDebug($"SetWatcher({dllWatcher})");
            if (_watcher != null)
            {
                _watcher.OnGetPluginsInFile -= OnGetPluginsInFile;
            }

            _watcher = dllWatcher;
            _watcher.OnGetPluginsInFile += OnGetPluginsInFile;
        }