public static string ToJson(BackupInstance bi)
 {
     return(JsonConvert.SerializeObject(bi));
 }
Esempio n. 2
0
        public void queueBackupInstances(IEnumerable <BackupInstance> backupInstances)
        {
            var strToOverwrite = backupInstances.Aggregate("", (current, bi) => current + BackupInstance.ToJson(bi));

            OverwriteAll(strToOverwrite);
        }