public async Task UpdateSupporterKey(string newValue) { if (newValue != null) { newValue = newValue.Trim(); } if (!string.Equals(newValue, LicenseFile.RegKey, StringComparison.Ordinal)) { LicenseFile.RegKey = newValue; LicenseFile.Save(); // Reset this await GetRegistrationStatusInternal("MBSupporter", true, _appHost.ApplicationVersion.ToString(), CancellationToken.None).ConfigureAwait(false); } }
public async Task UpdateSupporterKey(string newValue) { if (newValue != null) { newValue = newValue.Trim(); } if (!string.Equals(newValue, LicenseFile.RegKey, StringComparison.Ordinal)) { LicenseFile.RegKey = newValue; LicenseFile.Save(); // Reset this await IsSupporter().ConfigureAwait(false); } }