public void PreparePluginToInstall(string systemName, User user = null) { if (!_pluginsInfo.PluginNamesToInstall.Any(item => item.SystemName == systemName)) { _pluginsInfo.PluginNamesToInstall.Add((systemName, user?.UserGuid)); _pluginsInfo.Save(_fileProvider); } }
/// <summary> /// Prepare plugin to the installation /// </summary> /// <param name="systemName">Plugin system name</param> /// <param name="customer">Customer</param> public virtual void PreparePluginToInstall(string systemName, Customer customer = null) { //add plugin name to the appropriate list (if not yet contained) and save changes if (!_pluginsInfo.PluginNamesToInstall.Any(item => item.SystemName == systemName)) { _pluginsInfo.PluginNamesToInstall.Add((systemName, customer?.CustomerGuid)); _pluginsInfo.Save(_fileProvider); } }