Esempio n. 1
0
        protected override void Dispose(bool isDisposing)
        {
            base.Dispose(isDisposing);

            config.Set(OsuSetting.Token, config.Get <bool>(OsuSetting.SavePassword) ? Token : string.Empty);
            config.Save();
        }
Esempio n. 2
0
        protected override void Dispose(bool isDisposing)
        {
            //refresh token may have changed.
            Config.Set(OsuConfig.Token, API.Token);
            Config.Save();

            base.Dispose(isDisposing);
        }
Esempio n. 3
0
        protected override void Dispose(bool isDisposing)
        {
            base.Dispose(isDisposing);

            config.Set(OsuSetting.Token, config.Get <bool>(OsuSetting.SavePassword) ? Token : string.Empty);
            config.Save();

            flushQueue();
            cancellationToken.Cancel();
        }
Esempio n. 4
0
        protected override void Dispose(bool isDisposing)
        {
            //refresh token may have changed.
            if (LocalConfig != null && API != null)
            {
                LocalConfig.Set(OsuSetting.Token, LocalConfig.Get <bool>(OsuSetting.SavePassword) ? API.Token : string.Empty);
                LocalConfig.Save();
            }

            base.Dispose(isDisposing);
        }