* test some refactoring for cachedplayer * rework logging * fix saving of log level --------- Co-authored-by: rootdarkarchon <root.darkarchon@outlook.com>
26 lines
835 B
C#
26 lines
835 B
C#
using MareSynchronos.Managers;
|
|
using MareSynchronos.MareConfiguration;
|
|
using MareSynchronos.Models;
|
|
using Microsoft.Extensions.Logging;
|
|
|
|
namespace MareSynchronos.Factories;
|
|
|
|
public class PairFactory
|
|
{
|
|
private readonly MareConfigService _configService;
|
|
private readonly ServerConfigurationManager _serverConfigurationManager;
|
|
private readonly ILoggerFactory _loggerFactory;
|
|
|
|
public PairFactory(MareConfigService configService, ServerConfigurationManager serverConfigurationManager, ILoggerFactory loggerFactory)
|
|
{
|
|
_configService = configService;
|
|
_serverConfigurationManager = serverConfigurationManager;
|
|
_loggerFactory = loggerFactory;
|
|
}
|
|
|
|
public Pair Create()
|
|
{
|
|
return new Pair(_loggerFactory.CreateLogger<Pair>(), _configService, _serverConfigurationManager);
|
|
}
|
|
}
|