简体   繁体   English

扩展 Hangfire 仪表板

[英]Extending Hangfire Dashboard

I wanted to ask you if anyone tried extending their Hangfire dashboard?我想问你是否有人尝试扩展他们的 Hangfire 仪表板? There seem to be some tips, by the author of package, but they are the rest of the owl type tips. package的作者似乎有一些提示,但它们是猫头鹰类型提示的其余部分。

I want to extend my dashboard with additional columns, Tenant column and Entity Type.我想用额外的列、租户列和实体类型来扩展我的仪表板。

I installed RazorGenerator as per this thread: https://github.com/HangfireIO/Hangfire/issues/593 and then I have created a view RecurringJobsPage.cshtml with code:我按照这个线程安装了 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>

It generated the class for it, but it has a bunch of errors like CS0115 '_Views_Hangfire_RecurringJobsPage.ExecuteAsync()': no suitable method found to override etc. Can anyone share a code that they have used to extend their dashboard??它为它生成了类,但它有一堆错误,例如CS0115 '_Views_Hangfire_RecurringJobsPage.ExecuteAsync()': no suitable method found to override等。任何人都可以分享他们用来扩展仪表板的代码吗?

Thanks!谢谢!

There seems to be very limited documentation for this.这方面的文档似乎非常有限。 I have used this post in the past which breaks the task down nicely我过去使用过这篇文章,它很好地分解了任务

extend hangfire dashboard扩展hangfire仪表板

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM