public Task <DomainModel.Directory> LoadAsync(string id) { var directoryContext = new DirectoryContext(id); directoryContext.DemandAccess(); var files = directoryContext.GetFiles() .Select(file => new DomainModel.File(file.Name, new FileContentLoadingPolicy(file.Path))) .ToArray(); return(Task.FromResult(new DomainModel.Directory(id, files))); }