コード例 #1
0
 //method for adding a new release
 public Task AddRelease(ReleasePlan release)
 {
     try
     {
         CreateGroup(release.ProjectId);
         _service.AddRelease(release);
         return(Clients.Group("releaseGroup").InvokeAsync("whenAdded", release));
     }
     catch (Exception e)
     {
         _logger.LogError("Method {0}, Description: {1}, Source: {2},Exception: {3}", e.TargetSite, e.Message, e.Source, e.ToString());
         throw;
     }
 }
コード例 #2
0
 public void Post([FromBody] ReleasePlan ReleasePlan)
 {
     _ReleasePlansanService.AddRelease(ReleasePlan);
 }