Hello,
You may use the following code in your global.asax to setup the job server but you won’t be able to use the dashboard without OWIN.
using Hangfire;
using System;
namespace WebAPI
{
public class Global : System.Web.HttpApplication
{
private BackgroundJobServer _backgroundJobServer;
protected void Application_Start(object sender, EventArgs e)
{
GlobalConfiguration.Configuration.UseSqlServerStorage("<hangfire connection string>");
_backgroundJobServer = new BackgroundJobServer();
}
protected void Application_End(object sender, EventArgs e)
{
_backgroundJobServer.Dispose();
}
}
}