public Application(ISettingsProvider settingsProvider, IHttpHandler apiHandler, ILog log, IStateManager stateManagers) { _settingsProvider = settingsProvider; _stateManagers = stateManagers; _server = new KestrelHttpServer(apiHandler, log, settingsProvider.KestrelServerSettings); }