All Projects → hbiarge → Quartz.Unity

hbiarge / Quartz.Unity

Licence: Apache-2.0 license
Quartz.Net integration with Unity

Programming Languages

C#
18002 projects

Projects that are alternatives of or similar to Quartz.Unity

Quartzite
Quarzite is a thin idiomatic Clojure layer on top the Quartz Scheduler
Stars: ✭ 194 (+781.82%)
Mutual labels:  quartz
springboo-quartz
动态界面管理定时任务
Stars: ✭ 52 (+136.36%)
Mutual labels:  quartz
Akka.Quartz.Actor
Quartz scheduling actor
Stars: ✭ 50 (+127.27%)
Mutual labels:  quartz
Quartz Mongodb
A MongoDB-based store for the Quartz scheduler. This fork strives to be as feature complete as possible. Originally by MuleSoft.
Stars: ✭ 211 (+859.09%)
Mutual labels:  quartz
Schedule Job
基于Spring Boot + Quartz 的分布式任务调度系统
Stars: ✭ 239 (+986.36%)
Mutual labels:  quartz
spring-batch-quartz-admin
Spring Batch scheduling using Quartz
Stars: ✭ 16 (-27.27%)
Mutual labels:  quartz
Funiture
慕课网课程推荐 Java并发编程与高并发解决方案:http://coding.imooc.com/class/195.html Java开发企业级权限管理系统:http://coding.imooc.com/class/149.html github: https://github.com/kanwangzjm/funiture, spring项目,权限管理、系统监控、定时任务动态调整、qps限制、sql监控(邮件)、验证码服务、短链接服务、动态配置等
Stars: ✭ 1,786 (+8018.18%)
Mutual labels:  quartz
beihu-boot
企业级快速开发框架集,提供各种组件的模板方法包装,简化使用成本,供参考学习!
Stars: ✭ 32 (+45.45%)
Mutual labels:  quartz
springboot-quartz
springboot集成quartz,并实现定时调度和管理http请求任务
Stars: ✭ 72 (+227.27%)
Mutual labels:  quartz
SilkierQuartz
SilkierQuartz can host jobs using HostService and Provide a web management tools for Quartz !
Stars: ✭ 263 (+1095.45%)
Mutual labels:  quartz
Swiftuiimageeffects
Swift port of Apple UIImage+UIImageEffecs category.
Stars: ✭ 213 (+868.18%)
Mutual labels:  quartz
Sundial
A Light-weight Job Scheduling Framework
Stars: ✭ 230 (+945.45%)
Mutual labels:  quartz
quartz-web
Quartz Web Manager | 基于Quartz进行基于WEB页面的管理
Stars: ✭ 44 (+100%)
Mutual labels:  quartz
Cronexpbuilder
Quartz 的Cron任务调度表达式一般人很难理解,在Googole上查询也没有发现类似的代码,所以开发了一个对Quartz Cron 表达式的可视化双向解析和生成的一个java的GUI程序,供使用Quartz的程序员参考和使用.
Stars: ✭ 204 (+827.27%)
Mutual labels:  quartz
hqc mp
微信小程序+微信管理后台+微信用户前台
Stars: ✭ 69 (+213.64%)
Mutual labels:  quartz
Spring Boot Leaning
Spring Boot 2.X 最全课程代码
Stars: ✭ 2,008 (+9027.27%)
Mutual labels:  quartz
job-schedule-tutorials
分布式任务调度框架教程, 包括: Quartz、Elastic-Job和TBSchedule.
Stars: ✭ 31 (+40.91%)
Mutual labels:  quartz
Knight
The scheduler with UI base on quartz-scheduler(spring boot + angular)
Stars: ✭ 16 (-27.27%)
Mutual labels:  quartz
dubai
迪拜后台系统框架:基于Springside、Mysql、Bootstrap2的后台系统框架,旨在为繁杂的各种业务流程提供一个界面简约、操作高效、运行稳定、容易集成和横向扩展的开发基础框架及规范。
Stars: ✭ 45 (+104.55%)
Mutual labels:  quartz
RuoYi-Vue-Oracle
🎉 (RuoYi)官方仓库 基于SpringBoot,Spring Security,JWT,Vue & Element 的前后端分离权限管理系统
Stars: ✭ 225 (+922.73%)
Mutual labels:  quartz

Quartz.Unity

Quartz.Unity contains several classes to integrate Quartz.net with Unity.

Implements a UnityJobFactoy that delegates to Unity the creation of Job instances and creates UnitySchedulerFactory to utilize that IJobFactory.

There is also an UnityContainerExtension that registers the interface ISchedulerFactory to resolve a UnitySchedulerfactory as a Singleton (ContainerControlledLifetimemanager).

Usage

Add the package to your project.

Where you configure your IUnityContainer add this line:

Container.AddNewExtension<QuartzUnityExtension>();

In the class where you will use Quartz, you must inject an instance of ISchedulerFactory. When Unity resolves the ISchedulerFactory instance, it will be able to crete an IScheduler and schedule Job instances based in your container. You can cretate Jobs with explicit dependencies declared in the Job constructor that will be automatically resolved by Unity when the Job is created.

That's all!

Internals

This Unity Extension registers the types ISchedulerFactory in your container like this:

Container.RegisterType<ISchedulerFactory, UnitySchedulerFactory>(new ContainerControlledLifetimeManager());

So the ISchedulerFactory is a Singleton managed by the container.

Upd Objects lifetime with ChildContainer

Unity disposes instances (calls Dispose method if IDisposable) created with HierarchicalLifetimeManager. It happens when corresponding ChildContainer is disposed. Now every Job resolved in own ChildContainer and ChildContainer disposed after IJob.Execute completes. Implementation based on Autofac.Extras.Quartz-master

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].