|
using Hangfire.Dashboard;
|
|
|
|
namespace YuanXuan.IM.Api.Hangfire
|
|
{
|
|
public class MyHangfireFilter : IDashboardAuthorizationFilter
|
|
{
|
|
public bool Authorize(DashboardContext context)
|
|
{
|
|
var httpContext = context.GetHttpContext();
|
|
|
|
return true; // 允许远程无限制访问
|
|
}
|
|
}
|
|
}
|