Beispiel #1
0
        protected override async Task <IProject> ReadFromLocationAsync(string location)
        {
            var entityRecords = await _fileReaderService.ReadAsync(location);

            var text = await _rawFileService.ReadAllTextAsync(location);

            var project = new PackageListProject(location);

            project.RawContent = text;

            InitializeProjectContent(project, entityRecords);

            await _projectManager.SetActiveProjectAsync(project);

            return(project);
        }
Beispiel #2
0
 private IProject InitializeProjectContent(PackageListProject project, IEnumerable <IEntity> records)
 {
     project.PackageCollection = records;
     return(project);
 }