Beispiel #1
0
 private async Task InitializeDescription(TemplateViewModel selection) {
     if (!string.IsNullOrEmpty(selection.RemoteUrl)) {
         try {
             var repo = await _githubClient.GetDescription(selection.RepositoryOwner, selection.RepositoryName);
             selection.Description = repo.Description;
         } catch (WebException) {
         }
     } else {
         selection.Description = string.Empty;
     }
 }