【发布时间】:2020-02-06 09:21:00
【问题描述】:
我想问你是否有人尝试扩展他们的 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 等。
任何人都可以分享他们用来扩展仪表板的代码吗?
谢谢!
【问题讨论】: