public async Task ExecuteAsync() { QueueLog($"============== STARTUP =============="); QueueLog("`MASZ` started!"); QueueLog("System time: " + DateTime.Now.ToString()); QueueLog("System time (UTC): " + DateTime.UtcNow.ToString()); QueueLog($"Language: `{_config.GetDefaultLanguage()}`"); QueueLog($"Hostname: `{_config.GetHostName()}`"); QueueLog($"URL: `{_config.GetBaseUrl()}`"); QueueLog($"Domain: `{_config.GetServiceDomain()}`"); QueueLog($"ClientID: `{_config.GetClientId()}`"); if (_config.IsCorsEnabled()) { QueueLog("CORS support: \u26A0 `ENABLED`"); } else { QueueLog("CORS support: `DISABLED`"); } if (_config.IsCustomPluginModeEnabled()) { QueueLog("Plugin support: \u26A0 `ENABLED`"); } else { QueueLog("Plugin support: `DISABLED`"); } if (_config.IsDemoModeEnabled()) { QueueLog("Demo mode: \u26A0 `ENABLED`"); } else { QueueLog("Demo mode: `DISABLED`"); } if (_config.IsPublicFileEnabled()) { QueueLog("Public file mode: \u26A0 `ENABLED`"); } else { QueueLog("Public file mode: `DISABLED`"); } QueueLog($"============== /STARTUP ============="); await ExecuteWebhook(); }
public Translator(InternalConfiguration config, IServiceProvider serviceProvider) { _config = config; _serviceProvider = serviceProvider; _translation = Translation.Ctx(_config.GetDefaultLanguage()); }