1
0

113/03/12

This commit is contained in:
2024-03-12 11:57:08 +08:00
parent 634172304f
commit 0c512bcd82
12 changed files with 308 additions and 29 deletions

View File

@@ -0,0 +1,17 @@
using Hangfire.Annotations;
using Hangfire.Dashboard;
namespace HangfireExample.WebService.Filters
{
/// <summary>
/// Hangfire Dashboard 的認證過濾中介。
/// </summary>
public class DashboardAuthorizationFilter : IDashboardAuthorizationFilter
{
public bool Authorize([NotNull] DashboardContext context)
{
// 認證時,直接回傳成功(無驗證)
return true;
}
}
}