public SusSuiteManager(ILogger <SusSuiteCore> logger) { var susPlugin = new SusSuitePlugin() { Name = "SusSuite", PluginType = PluginType.Extra }; Logger = logger; LoggerService = new LoggerService(logger, susPlugin); PluginManager = new PluginManager(LoggerService); SusSuiteCore = GetSusSuiteCore(susPlugin); var validation = new JsonSerializerOptions(); validation.Converters.Add(new SusSuiteConfigPropertyConverter()); var serverConfig = SusSuiteCore.ConfigService.GetConfig <SusSuiteConfig>("SusSuiteServer", validation); ServerPlugin = new SusSuitePlugin() { Name = serverConfig.ServerName, PluginColor = serverConfig.ServerColor, PluginType = PluginType.Extra }; }
public LoggerService(ILogger logger, SusSuitePlugin susSuitePlugin) { _logger = logger; _plugin = susSuitePlugin; }
public SusSuiteCore(ILogger <SusSuiteCore> logger, SusSuitePlugin susSuitePlugin, SusSuiteManager susSuiteManager) { LoggerService = new LoggerService(logger, susSuitePlugin); ConfigService = new ConfigService(LoggerService, susSuitePlugin); PluginService = new PluginService(susSuitePlugin, susSuiteManager); }
public SusSuiteCore GetSusSuiteCore(SusSuitePlugin susSuitePlugin) { return(new SusSuiteCore(Logger, susSuitePlugin, this)); }
public PluginService(SusSuitePlugin susSuitePlugin, SusSuiteManager susSuiteManager) { _susSuitePlugin = susSuitePlugin; _susSuiteManager = susSuiteManager; _data = new Dictionary <string, object>(); }
public ConfigService(LoggerService loggerService, SusSuitePlugin plugin) { _loggerService = loggerService; _plugin = plugin; }