I define a process-class implementing the IBackgroundProcess-interface like following
``` c#
using Hangfire.Server;
namespace Some.Namespace {
public class MyBackgroundProcess : IBackgroundProcess {
public void Execute(BackgroundProcessContext context) {
DoSomeWork();
context.CancellationToken.WaitHandle.WaitOne(TimeSpan.FromMinutes(5));
}
}
}
and add the process on startup
``` c#
using Microsoft.Owin;
using Owin;
using Hangfire;
using Hangfire.SqlServer;
using Hangfire.Dashboard;
[assembly: OwinStartup(typeof(Eicin.Erp.Ui.Web.Startup))]
namespace Eicin.Erp.Ui.Web
{
public partial class Startup
{
public void Configuration(IAppBuilder app)
{
// ...
// Do the other init
app.UseHangfireServer(new MyProcess());
// Do additional stuff
}
}
}
the process is not visibile on the dashboard. Is there a possibilty to make it visible?
Curious to know an answer for this as well. It would be nice to have a visual confirmation background processes are running.
Hi, I would also really like to see the BackgroundProcess on the dashboard. Is this possible?
I have a few processes like this my self so i would also love to get a visual overview of the running background processes.
This could be a nice feature.
Most helpful comment
Curious to know an answer for this as well. It would be nice to have a visual confirmation background processes are running.