Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

asp.net web hooks

public class GitHubHandler : WebHookHandler
{
    public override Task ExecuteAsync(string receiver, WebHookHandlerContext context)
    {
        string action = context.Actions.First();
        JObject data = context.GetDataOrDefault<JObject>();
  
        return Task.FromResult(true);
    }
}
Source by www.hanselman.com #
 
PREVIOUS NEXT
Tagged: #web #hooks
ADD COMMENT
Topic
Name
1+8 =