private void DoClearCache() { var confirmation = new ConditionalConfirmation { Title = "Refresh locally cached Commerce Manager texts".Localize(), Content = "Are you sure you want to clear all locally cached Commerce Manager texts?".Localize() }; CommonConfirmRequest.Raise(confirmation, async xx => { if (xx.Confirmed) { ShowLoadingAnimation = true; try { await Task.Run(() => { _elementRepository.Clear(); // force Elements re-caching _elementRepository.Elements(); _elementRepository.SetStatusDate(); // force values update LocalizationManager.UpdateValues(); // update available languages menu SendCulturesToShell(); }); var notification = new Notification(); // notification.Title = "Done"; notification.Content = "All locally cached texts were removed. You may need to restart this application for the changes to take effect." .Localize(); CommonNotifyRequest.Raise(notification); } finally { ShowLoadingAnimation = false; } } }); }
public void SetStatusDate(DateTime lastModified) { _innerRepository.SetStatusDate(lastModified); SetStatusElement(lastModified); }
public void SetStatusDate(DateTime lastModified) { _cacheRepository.SetStatusDate(lastModified); }