Example #1
0
        /// <summary>
        /// Asynchronously resets the settings.
        /// </summary>
        public async Task ResetSettingsAsync()
        {
            EveMonClient.Trace("Initiated");

            SerializableAPIResult <SerializableAPICredentials> result = await RevokeAuthorizationAsync().ConfigureAwait(false);

            if (!result.HasError)
            {
                Settings.Reset();
            }

            SettingsReset?.ThreadSafeInvoke(this, new CloudStorageServiceProviderEventArgs(null));

            var resultText = result.HasError ? "Failed" : "Completed";

            EveMonClient.Trace($"CloudStorageServiceProvider.ResetSettingsAsync - {resultText}", printMethod: false);
        }
Example #2
0
 public override void Reset()
 {
     base.Reset();
     SettingsReset?.Invoke(this, EventArgs.Empty);
 }
Example #3
0
 protected virtual void OnSettingsReset(EventArgs e)
 {
     SettingsReset?.Invoke(this, e);
 }