private async Task CreateAllAsync()
{
List<DirectoryInfo> sampleDirectories = new List<DirectoryInfo>();
var serializer = new DataContractJsonSerializer(typeof(SampleModel));
try
{
await Task.Run(() =>
{
if (!File.Exists("groups.json"))
throw new NotImplementedException("groups.json file is missing");
_sampleStructureMap = SampleStructureMap.Create("groups.json", _selectedLanguage);
});
}
// This is thrown if even one of the files requires permissions greater
// than the application provides.
catch (UnauthorizedAccessException e)
{
throw; //TODO
}
catch (DirectoryNotFoundException e)
{
throw; //TODO
}
catch (Exception e)
{
throw; //TODO
}
}