Esempio n. 1
0
 private static void ValidatePushBodyFormat(ApplicationLoadBalancerRequest request, out PushEvent payload)
 {
     try
     {
         payload = Deserialize <PushEvent>(request.Body);
     }
     catch (Exception e)
     {
         Console.WriteLine(e.Message + "\n" + e.StackTrace);
         throw new BodyNotJsonException();
     }
 }
Esempio n. 2
0
 public string FetchPushEventCommitMessage(PushEvent pushEvent)
 {
     return(pushEvent.HeadCommit.Message);
 }