public override Task ExecuteAsync(string generator, WebHookHandlerContext context) { // Convert to POCO type KuduNotification notification = context.GetDataOrDefault <KuduNotification>(); // Get the notification message string message = notification.Message; // Get the notification author string author = notification.Author; return(Task.FromResult(true)); }
public override Task ExecuteAsync(string generator, WebHookHandlerContext context) { // For more information about Azure Kudu WebHook payloads, please see // 'https://github.com/projectkudu/kudu/wiki/Web-hooks' KuduNotification notification = context.GetDataOrDefault <KuduNotification>(); // Get the notification message string message = notification.Message; // Get the notification author string author = notification.Author; return(Task.FromResult(true)); }
public IActionResult KuduForIt(string @event, KuduNotification data) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } // Get the notification message var message = data.Message; // Get the notification author var author = data.Author; return(Ok()); }