예제 #1
0
        static void Main(string[] args)
        {
            myStoryService = new StoryService(GetPivotalAuthToken());
            var projectsToBackup = GetProjectsToBackup();

            foreach (var project in projectsToBackup)
            {
                var backupData = new BackupData(project)
                {
                    Stories = myStoryService.GetAllStories(project.Id)
                };
                backupData.SetBackupFilePath();
                CreateJsonBackup(backupData);
            }

            // serialize http://james.newtonking.com/json/help/index.html
        }
예제 #2
0
 private static void CreateJsonBackup(BackupData backupData)
 {
     using (var fs = File.OpenWrite(backupData.BackupFilePath)) {
     }
 }