public void Start(ILogger logger)
 {
     Started         = true;
     api             = new OsuPostApi(logger);
     api.EndpointUrl = _settings.Get <string>(_names.osuPostEndpoint);
     SwitchApiStatus(_settings.Get <bool>(_names.osuPostEnabled));
     _settings.SettingUpdated += SettingUpdated;
 }
Exemple #2
0
        public OsuPost(ILogger logger, ISettings settings)
        {
            _settings = settings;

            api             = new OsuPostApi(logger);
            api.EndpointUrl = _settings.Get <string>(_names.osuPostEndpoint);
            SwitchApiStatus(_settings.Get <bool>(_names.osuPostEnabled));
            _settings.SettingUpdated += SettingUpdated;
        }