Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
CAP
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tsai
CAP
Commits
0c902940
Commit
0c902940
authored
Jul 17, 2017
by
yangxiaodong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add webhook support.
parent
95b2cdff
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
CAP.Options.cs
src/DotNetCore.CAP/CAP.Options.cs
+12
-0
WebHookProvider.cs
src/DotNetCore.CAP/Infrastructure/WebHookProvider.cs
+10
-0
No files found.
src/DotNetCore.CAP/CAP.Options.cs
View file @
0c902940
...
...
@@ -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
;
}
}
}
\ No newline at end of file
src/DotNetCore.CAP/Infrastructure/WebHookProvider.cs
0 → 100644
View file @
0c902940
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
namespace
DotNetCore.CAP.Infrastructure
{
class
WebHookProvider
{
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment