{"repo":"alphacloud/Autofac.Extras.Quartz","free":true,"listed":false,"github":"https://github.com/alphacloud/Autofac.Extras.Quartz","clone":"git clone https://github.com/alphacloud/Autofac.Extras.Quartz.git","description":"Autofac integration for Quartz.Net","language":"C#","stars":123,"topics":["autofac","quartz","job-registration","c-sharp","scheduler","dependency-injection","schedule"],"license":"MIT","category":"workflow-automation","readme_excerpt":"Autofac.Extras.Quartz ===================== 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: dotnet add package Autofac.Extras.Quartz Build status Stable Pre-release :--: :--: :--: Build NuGet CodeCov Usage example Autofac configuration for Quartz includes two steps: 1. Scheduler registration 2. Job registration Scheduler registration QuartzAutofacFactoryModule registers custom ISchedulerFactory and default instance of IScheduler in Autofac container. Both factory and schedulere are registered as singletones. Note: Is is important to resolve IScheduler from container, rather than using default one to get jobs resolved by Autofac. Optionally custom Quartz configuration can be passed using ConfigurationProvider property. Provider is callback which returns settings using NameValueCollection . Job scope configuration Starting with version 7 QuartzAutofacFactoryModule provides a way to customize lifetime scope configuration for job. This can be done via JobScopeConfigurator parameter. See src/Samples/Shared/Bootstrap.cs for details. Job registration QuartzAutofacJobsModule scans given assemblies and registers all non-abstract implementors of IJob interface as transient instances. Starting Quartz Make sure to start the scheduler after","default_branch":null,"files":null,"tree":[],"storefront":"/r/alphacloud","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/alphacloud/Autofac.Extras.Quartz/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}