ArcGISRuntimeXamarin.Managers.SampleManager.CreateAllAsync C# (CSharp) Method

CreateAllAsync() private method

Creates whole sample structure.
private CreateAllAsync ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task
        private async Task CreateAllAsync()
        {
            // You can no longer check to see if groups.json exists on disk here. You have to 
            // open it and verify that it isn't null. 

            Stream groupsJson = GetType().Assembly.GetManifestResourceStream("ArcGISRuntimeXamarin.groups.json");
            try
            {
                await Task.Run(() =>
                {
                    if (groupsJson == null)
                        throw new NotImplementedException("groups.json file cannot be opened");
                    _sampleStructureMap = SampleStructureMap.Create(groupsJson); // Passing the Activity context here again
                });
            }
            // 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
            }
        }
    }