我想问你,是否有人尝试扩展他们的Hangfire仪表板?package的作者似乎提供了一些技巧,但它们是猫头鹰类型的其余技巧。
我想通过附加的列、租户列和实体类型来扩展我的仪表板。
我按照这个线程安装了RazorGenerator:https://github.com/HangfireIO/Hangfire/issues/593,然后我用代码创建了一个视图RecurringJobsPage.cshtml:
@* Generator: Template
TypeVisibility: Internal
GeneratePrettyNames: true
Namespace: Hangfire.Dashboard.Pages
*@
@using Hangfire.Dashboard
@inherits RazorPage
<div>
TEST
</div>它为它生成了类,但它有一堆错误,比如CS0115 '_Views_Hangfire_RecurringJobsPage.ExecuteAsync()': no suitable method found to override等。有人能分享他们用来扩展仪表板的代码吗?
谢谢!
发布于 2020-02-06 19:13:23
关于这方面的文档似乎非常有限。我在过去用过这篇文章,它很好地分解了任务。
https://stackoverflow.com/questions/60091458
复制相似问题