Autofac.Extras.Quartz | Autofac integration for Quartz.Net | Job Scheduling library
kandi X-RAY | Autofac.Extras.Quartz Summary
kandi X-RAY | Autofac.Extras.Quartz Summary
Autofac integration package for [Quartz.Net] Autofac.Extras.Quartz creates nested litefime scope for each Quartz Job. Nested scope is disposed after job execution has been completed. This allows to have [single instance per job execution] as well as deterministic [disposal of resources] Install package via Nuget: install-package Autofac.Extras.Quartz.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Autofac.Extras.Quartz
Autofac.Extras.Quartz Key Features
Autofac.Extras.Quartz Examples and Code Snippets
Community Discussions
Trending Discussions on Autofac.Extras.Quartz
QUESTION
I want to do the following.
I implemented a scheduler with Quartz.Net and for IOC I use Autofac.
Now I want to start one job multiple times but the data base is different for each job. My repository takes a parameter, that wraps my connection string.
The parameter is of type IOptions
and is injected in the constructor of the repository. The repository is also injected in different services.
The Problem is, that I can't acces the repository directly, because there are many services involved, which all use the same repository.
The repository is implemented by someone else and it contains multiple queries and one connection string property. I have different data bases for different countries (sales system) but they are all the same, so I just have one repository for all the data bases.
The connection strings are read from a JSON file:
...ANSWER
Answered 2018-Sep-12 at 08:13It seems, that you almost got it. I don't know how exactly your classes look like, so I made up an example with some stub implementaion for Job
, Reposiroty
and services classes. There is a job that receives two services into contructor. Both of the services requires repository as parameter to their constructors:
QUESTION
I attempting to use Quartz with Autofac due Autofac.Extras.Quartz library. But my code crashes It is simple but it crashes:
...ANSWER
Answered 2017-Aug-23 at 16:09I figure it out: Autofac.Extras.Quartz and Quartz assemblies was incompatible. Autofac.Extras.Quartz (3.3.0) calls ISchedulerFactory method getScheduler() like this
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Autofac.Extras.Quartz
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page