瀏覽代碼

add webhook support.

master
yangxiaodong 7 年之前
父節點
當前提交
0c9029404d
共有 2 個檔案被更改,包括 22 行新增0 行删除
  1. +12
    -0
      src/DotNetCore.CAP/CAP.Options.cs
  2. +10
    -0
      src/DotNetCore.CAP/Infrastructure/WebHookProvider.cs

+ 12
- 0
src/DotNetCore.CAP/CAP.Options.cs 查看文件

@@ -26,6 +26,11 @@ namespace DotNetCore.CAP
/// </summary>
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>
/// Registers an extension that will be executed when building services.
/// </summary>
@@ -38,4 +43,11 @@ namespace DotNetCore.CAP
Extensions.Add(extension);
}
}

public class WebHook
{
public string PayloadUrl { get; set; }

public string Secret { get; set; }
}
}

+ 10
- 0
src/DotNetCore.CAP/Infrastructure/WebHookProvider.cs 查看文件

@@ -0,0 +1,10 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace DotNetCore.CAP.Infrastructure
{
class WebHookProvider
{
}
}

Loading…
取消
儲存