public SelectPluginViewModel() { PluginsService = new PluginsService(); ListPluginsName = new List <string>(); foreach (var plugin in PluginsService.ListPlugins) { ListPluginsName.Add(plugin.Name); } SelectedPlugin = ListPluginsName.First(); }
void loadDependencies() { // resolve services logService = Container.GetExportedValue<ILogService>(); streamService = Container.GetExportedValue<IStreamService>(); outputService = Container.GetExportedValue<IOutputService>(); dialogService = Container.GetExportedValue<IDialogService>(); // resolve the plugins service instance from the current assembly, which will in turn resolve the plugins automatically from the plugins folder pluginsService = Container.GetExportedValue<PluginsService>(); pluginsService.InitializeStreams(); pluginsService.InitializeProcessors(); }