Ejemplo 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();
        }
Ejemplo 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);
        }
Ejemplo 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();
        }
Ejemplo 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);
        }