Commit 0c902940 authored by yangxiaodong's avatar yangxiaodong

add webhook support.

parent 95b2cdff
...@@ -26,6 +26,11 @@ namespace DotNetCore.CAP ...@@ -26,6 +26,11 @@ namespace DotNetCore.CAP
/// </summary> /// </summary>
public int PollingDelay { get; set; } = 8; public int PollingDelay { get; set; } = 8;
/// <summary>
/// We’ll send a POST request to the URL below with details of any subscribed events.
/// </summary>
public WebHook WebHook { get; set; }
/// <summary> /// <summary>
/// Registers an extension that will be executed when building services. /// Registers an extension that will be executed when building services.
/// </summary> /// </summary>
...@@ -38,4 +43,11 @@ namespace DotNetCore.CAP ...@@ -38,4 +43,11 @@ namespace DotNetCore.CAP
Extensions.Add(extension); Extensions.Add(extension);
} }
} }
public class WebHook
{
public string PayloadUrl { get; set; }
public string Secret { get; set; }
}
} }
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.Text;
namespace DotNetCore.CAP.Infrastructure
{
class WebHookProvider
{
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment