2 changed files with 33 additions and 6 deletions
@ -1,12 +1,39 @@ |
|||
namespace LINGYUN.Abp.WebhooksManagement; |
|||
using System; |
|||
|
|||
namespace LINGYUN.Abp.WebhooksManagement; |
|||
public class WebhookManagementOptions |
|||
{ |
|||
/// <summary>
|
|||
/// Default: true.
|
|||
/// </summary>
|
|||
public bool SaveStaticWebhooksToDatabase { get; set; } |
|||
/// <summary>
|
|||
/// Default: false.
|
|||
/// </summary>
|
|||
public bool IsDynamicWebhookStoreEnabled { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 缓存刷新时间
|
|||
/// default: 30 seconds
|
|||
/// </summary>
|
|||
public TimeSpan WebhooksCacheRefreshInterval { get; set; } |
|||
/// <summary>
|
|||
/// 申请时间戳超时时间
|
|||
/// default: 2 minutes
|
|||
/// </summary>
|
|||
public TimeSpan WebhooksCacheStampTimeOut { get; set; } |
|||
/// <summary>
|
|||
/// 时间戳过期时间
|
|||
/// default: 30 minutes
|
|||
/// </summary>
|
|||
public TimeSpan WebhooksCacheStampExpiration { get; set; } |
|||
public WebhookManagementOptions() |
|||
{ |
|||
IsDynamicWebhookStoreEnabled = true; |
|||
SaveStaticWebhooksToDatabase = true; |
|||
|
|||
WebhooksCacheRefreshInterval = TimeSpan.FromSeconds(30); |
|||
WebhooksCacheStampTimeOut = TimeSpan.FromMinutes(2); |
|||
// 30分钟过期重新刷新缓存
|
|||
WebhooksCacheStampExpiration = TimeSpan.FromMinutes(30); |
|||
} |
|||
} |
|||
|
|||
Loading…
Reference in new issue