[Save/Sync] Commit work before .NET 10 tests.
This commit is contained in:
@@ -26,6 +26,7 @@ public interface ISettingBase : IDataInfo, IEquatable<ISettingBase>, IDisposable
|
||||
T CreateInstance([NotNull]IConfigInfo configInfo, Func<OneOf<string, XElement, object>, bool> valueChangePredicate);
|
||||
}
|
||||
|
||||
IConfigInfo GetConfigInfo();
|
||||
#if CLIENT
|
||||
IConfigDisplayInfo GetDisplayInfo();
|
||||
#endif
|
||||
|
||||
@@ -17,6 +17,7 @@ public abstract class SettingBase : ISettingBase
|
||||
public string InternalName => ConfigInfo.InternalName;
|
||||
public ContentPackage OwnerPackage => ConfigInfo.OwnerPackage;
|
||||
|
||||
public IConfigInfo GetConfigInfo() => ConfigInfo;
|
||||
#if CLIENT
|
||||
public IConfigDisplayInfo GetDisplayInfo() => ConfigInfo;
|
||||
#endif
|
||||
|
||||
@@ -80,6 +80,7 @@ public sealed partial class ConfigService : IConfigService
|
||||
_configInfoParserService = null;
|
||||
_configProfileInfoParserService = null;
|
||||
_commandsService = null;
|
||||
_infoProvider = null;
|
||||
}
|
||||
|
||||
public FluentResults.Result Reset()
|
||||
@@ -140,6 +141,7 @@ public sealed partial class ConfigService : IConfigService
|
||||
private ILoggerService _logger;
|
||||
private IEventService _eventService;
|
||||
private IConsoleCommandsService _commandsService;
|
||||
private ILuaCsInfoProvider _infoProvider;
|
||||
private IParserServiceOneToManyAsync<IConfigResourceInfo, IConfigInfo> _configInfoParserService;
|
||||
private IParserServiceOneToManyAsync<IConfigResourceInfo, IConfigProfileInfo> _configProfileInfoParserService;
|
||||
|
||||
@@ -148,7 +150,8 @@ public sealed partial class ConfigService : IConfigService
|
||||
IParserServiceOneToManyAsync<IConfigResourceInfo, IConfigInfo> configInfoParserService,
|
||||
IParserServiceOneToManyAsync<IConfigResourceInfo, IConfigProfileInfo> configProfileInfoParserService,
|
||||
IEventService eventService,
|
||||
IConsoleCommandsService commandsService)
|
||||
IConsoleCommandsService commandsService,
|
||||
ILuaCsInfoProvider infoProvider)
|
||||
{
|
||||
_logger = logger;
|
||||
_storageService = storageService;
|
||||
@@ -156,6 +159,7 @@ public sealed partial class ConfigService : IConfigService
|
||||
_configProfileInfoParserService = configProfileInfoParserService;
|
||||
_eventService = eventService;
|
||||
_commandsService = commandsService;
|
||||
_infoProvider = infoProvider;
|
||||
|
||||
_storageService.UseCaching = true;
|
||||
InjectCommands(commandsService);
|
||||
|
||||
Reference in New Issue
Block a user