private async Task DoGetPmeInfo(WinRtRepository.PMEType pmeType, string selectedPmeItemName) { try { var pmeName = _selectedClassInfo.ClassName + "." + selectedPmeItemName; _selectedPmeInfo = await _repository.GetPmeMetaData(pmeName, pmeType); classInfoUserControl.spPmeData.DataContext = _selectedPmeInfo ?? new PmeInfo { Name = "", Returns = "", Summary = "" }; } catch { classInfoUserControl.spPmeData.DataContext = new PmeInfo { Name = "", Returns = "", Summary = "" }; } }
public async Task <PmeInfo> GetPmeMetaData(string fullName, WinRtRepository.PMEType pmeType) { return(await Task.Run(() => new PmeInfo { Name = "MockMethod", Returns = "Mock return text", Summary = "This is mock data for the method" })); }