📜  asp.net 网络挂钩 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:00.189000             🧑  作者: Mango

代码示例1
public class GitHubHandler : WebHookHandler
{
    public override Task ExecuteAsync(string receiver, WebHookHandlerContext context)
    {
        string action = context.Actions.First();
        JObject data = context.GetDataOrDefault();
  
        return Task.FromResult(true);
    }
}