I am working on an asp.net mvc-5 web application. and i install the hangfire tool inside my web application using nuget tool.

https://www.nuget.org/packages/Hangfire/

Then i create the following startup.cs class, to call a method each minute as follow:-

 public class Startup
    {
        public void Configuration(IAppBuilder app)
        {
            GlobalConfiguration.Configuration
                .UseSqlServerStorage("scanservice");


            ScanningService ss = new ScanningService();
            RecurringJob.AddOrUpdate(() => ss.HypervisorScan("allscan"), Cron.Minutely);

        }

    }

and here is the definition of the method that will be called :-

public async Task<ScanResult> HypervisorScan(string FQDN)
{

but currently i deploy my application on IIS 7.5 , and the method is not being called at all . so can anyone adivce on this please ?

Thanks

Related posts

Recent Viewed