Questions tagged [hangfire.ninject]

Hangfire background job activator based on Ninject IoC Container. It allows you to use instance methods of classes that define parametrized constructors

9 questions
20
votes
1 answer

Hangfire configuration and Ninject configuration

I have an MVC 5 application which uses Ninject and I am adding Hangfire to it. When I have added Ninject, I have used the NinjectWebCommon nuget package because of its simplicity in the configuration. So for now Ninject is configured through the…
Lorenzo
  • 29,081
  • 49
  • 125
  • 222
4
votes
1 answer

Hangfire with Ninject using InRequestScope

I have installed the Hangfire.Ninject package to an ASP MVC 5 application so that I can run some background jobs. I've read through the documentation but I'm baffled as to how to implement it. My existing configuration uses InRequestScope for my…
adam78
  • 9,668
  • 24
  • 96
  • 207
4
votes
0 answers

Hangfire configuration in Webapp and window service

I have configured hangfire in webapi based project to initiate backgrond job .I have done below mentioned configuration for hangfire Webapi Project Configuration for Hangfire public static void ConfigureHangfire(IAppBuilder app) { …
raj pawar
  • 41
  • 2
2
votes
1 answer

Error activating int No matching bindings are av

I am trying to use Hangfire to run a background job in my MVC project. I call the Enqueue method in the constructor of my controller: public SHQSController(IUnitOfWork uow) : base(uow) { BackgroundJob.Enqueue(() =>…
Colin
  • 22,328
  • 17
  • 103
  • 197
2
votes
1 answer

Autofac job activator with Hangfire throwing exception DependencyResolutionException

My project structure is same as : https://github.com/MarlabsInc/webapi-angularjs-spa I have followed the instructions in : http://docs.hangfire.io/en/latest/background-methods/using-ioc-containers.html So I have created a container job…
1
vote
1 answer

No parametless constructor defined Hangfire Ninject

I'm having a problem activating instance of my class with no parametless constructor defined. The constructor: public HangfireExecutor(ICommandDispatcher commandDispatcher, IQueryDispatcher queryDispatcher, IMapper mapper) How I register and…
ignacy130
  • 322
  • 1
  • 2
  • 17
1
vote
1 answer

How to seed Hangfire database in asp.net core 2.0

I'm trying to integrate "Hangfire" to my existing ASP.NET Core application. Looking into the documentaion, looks like the Hangfire db needs to be created if we want to use SQL Server storage option. But it would be really annoying to create a db…
1
vote
1 answer

Problems integrating Hangfire with Ninject configuration InRequestScope

I am integrating Hangfire into an application (MVC5 4.6) in order to schedule a daily synchronisation task that is normally triggered by an admin user every evening. The problem is, I can't seem to get Hangfire to play nice with my current Ninject…
0
votes
0 answers

Hangfire Recurring job can't be scheduled

Hi I am getting below issue in my Hangfire recurring job after each 10 or 15 mins and every time I have to trigger my job manually and again it starts working for some time and then again getting the same issue. What could be the cause of this…