using System;
using System.Threading.Tasks;
using Hangfire;
using Microsoft.Owin;
using Owin;

[assembly: OwinStartup(typeof(Learun.Application.Web.App_Start.Startup))]

namespace Learun.Application.Web.App_Start
{
    public class Startup
    {
        public void Configuration(IAppBuilder app)
        {
            app.UseHangfireDashboard("/hangfire", new DashboardOptions
            {
                AppPath = "/Home/Index",
                Authorization = new[] { new HangfireAuthorizationFilter() }
            });
        }
    }
}