Example #1
0
 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;
 }
Example #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;
        }