【问题标题】:Extending Hangfire Dashboard扩展 Hangfire 仪表板
【发布时间】: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 等。 任何人都可以分享他们用来扩展仪表板的代码吗?

谢谢!

【问题讨论】:

    标签: c# .net razor hangfire


    【解决方案1】:

    这方面的文档似乎非常有限。我过去曾使用过这篇文章,它很好地分解了任务

    extend hangfire dashboard

    【讨论】:

    • 是的,我已经看过了,但还是不能跟上:/
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-03-17
    • 2017-05-19
    • 2020-08-02
    • 1970-01-01
    相关资源
    最近更新 更多