Quartz.Unity jobs Injection not working

Jun 28, 2016 at 6:42 AM
Hello Expert,

When Injecting EF6 IService in Quartz.Unity jobs, it doesn't run.

ICountryService is injected and works fine in controller.

public class HomeController : Controller
{
private readonly ICountryService _countryService;
public HomeController(ICountryService countryService)
{
_countryService = countryService;
}
public ActionResult Index()
{
var data = _countryService.Queryable().Where(x => x.NumericIsoCode != 1).ToList();
if (data.Any())
{
ViewBag.Title = "Home Page Count: " + data.Count();
}
else
{
ViewBag.Title = "Home Page";
}
return View();
}
}
Here is country job is works fine without ICountryService countryService. When I Inject ICountryService job doesn't work.

public class CountryListJob : IJob
{

private readonly ICountryService _countryService;
public CountryListJob(ICountryService countryService)
{
   _countryService = countryService;
}
public void Execute(IJobExecutionContext context)
{
    Console.WriteLine("aaaa");
}
}
Here is my full source project with quartz unity.
https://drive.google.com/file/d/0B9rL4JNdRAl3eXFSTktDdUxncDA/view

I will appreciate any help. Thank you

Sunil