コード例 #1
0
 public async Task <ActionResult <string> > CreatePipeline(string name)
 {
     if (name == null)
     {
         return(BadRequest("Missing name"));
     }
     try
     {
         string fileName = name;
         if (!name.EndsWith(".txt"))
         {
             fileName = name + ".txt";
         }
         SetStorageAccount();
         await fileStorageService.SaveFile(fileShare, fileName, "");
     }
     catch (Exception ex)
     {
         return(BadRequest());
     }
     return(Ok($"OK"));
 }
コード例 #2
0
 public async Task SavePipeline(string name, string content)
 {
     await _fileStorage.SaveFile(fileShare, name, content);
 }