public async Task ClearSettings() { lockSlim.EnterWriteLock(); try { if (localStore.Status == SettingsStoreStatus.Ready) { await localStore.ClearAsync(); await localStore.SaveAsync(); } if (roamingStore != null && roamingStore != localStore && roamingStore.Status == SettingsStoreStatus.Ready) { await roamingStore.ClearAsync(); await roamingStore.SaveAsync(); } if (transientStore.Status == SettingsStoreStatus.Ready) { await transientStore.ClearAsync(); await transientStore.SaveAsync(); } } finally { lockSlim.ExitWriteLock(); } ClearCache(); }