Esempio n. 1
0
 public async Task <GistObject> Create(string description, string filename, string content)
 {
     return(await client.CreateAGist(description, false, new List <Tuple <string, string> >()
     {
         new Tuple <string, string>(filename, content)
     }));
 }
 private async Task CreateASingleFileGist()
 {
     await TryAsyncApi("Create A Gist",
                       async() => await _gistClient.CreateAGist(UploadFileDescription, UploadFileIsPublic,
                                                                new[] { Tuple.Create(UploadFileName, Text) }));
 }