Fixed build

Added PluginSetting, settings service needs some more thought
This commit is contained in:
Robert Beekman committed 2019-04-16 17:00:20 +02:00
1 parent f63a7b91c8
commit 7847545af6
6 files changed
+171 -30

No files matched your search

+1 -1
View File
@@ -147,7 +147,7 @@ namespace Artemis.Core.Services
try
{
var constructorArguments = new ConstructorArgument("pluginInfo", pluginInfo);
pluginInfo.Instance = (Plugin) _childKernel.Get(pluginType, constraint: null, constructorArguments);
pluginInfo.Instance = (Plugin) _childKernel.Get(pluginType, constraint: null, parameters: constructorArguments);
}
catch (Exception e)
{
+3 -2
View File
@@ -4,6 +4,7 @@ using Artemis.Storage.Repositories;
namespace Artemis.Core.Services
{
// TODO: Rethink this :')
public class SettingsService : ISettingsService
{
private SettingRepository _settingRepository;
@@ -13,9 +14,9 @@ namespace Artemis.Core.Services
_settingRepository = new SettingRepository();
}
public PluginSettings GetPluginSettings(PluginInfo pluginInfo)
public PluginSettingsContainer GetPluginSettings(PluginInfo pluginInfo)
{
return new PluginSettings(pluginInfo, _settingRepository);
return new PluginSettingsContainer(pluginInfo, _settingRepository);
}
}