private void SerializeSyncSummaryBackgroundTask(SyncSummary syncProfile)
        {
            if (!Directory.Exists(ApplicationDataDirectory))
            {
                Directory.CreateDirectory(ApplicationDataDirectory);
            }

            var serializer = new XmlSerializer<SyncSummary>();
            serializer.SerializeToFile(syncProfile, SettingsFilePath);
        }
 public bool SerializeSyncSummary(SyncSummary syncProfile)
 {
     SerializeSyncSummaryBackgroundTask(syncProfile);
     return true;
 }
 public async Task<bool> SerializeSyncSummaryAsync(SyncSummary syncProfile)
 {
     await TaskEx.Run(() => SerializeSyncSummaryBackgroundTask(syncProfile));
     return true;
 }