Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XMLSchedulingDataProcessorPlugin #86

Open
JayYa opened this issue Apr 27, 2021 · 3 comments
Open

XMLSchedulingDataProcessorPlugin #86

JayYa opened this issue Apr 27, 2021 · 3 comments

Comments

@JayYa
Copy link

JayYa commented Apr 27, 2021

Can I use XMLSchedulingDataProcessorPlugin to init jobs without AddQuartzJob and SilkierQuartzAttribute?

services.AddSilkierQuartz(options =>
            {
                options.Add("quartz.plugin.jobInitializer.type", "Quartz.Plugin.Xml.XMLSchedulingDataProcessorPlugin, Quartz.Plugins");
                options.Add("quartz.plugin.jobInitializer.fileNames", "~/quartz_jobs.config");
                options.Add("quartz.plugin.jobInitializer.failOnFileNotFound", "true");
                options.Add("quartz.plugin.recentHistory.type", "Quartz.Plugins.RecentHistory.ExecutionHistoryPlugin, Quartz.Plugins.RecentHistory");
                options.Add("quartz.plugin.recentHistory.storeType", "Quartz.Plugins.RecentHistory.Impl.InProcExecutionHistoryStore, Quartz.Plugins.RecentHistory");
            });

Error: Object reference not set to an instance of an object.
@maikebing
Copy link
Member

Maybe

@maikebing
Copy link
Member

I haven't tested it

@JayYa
Copy link
Author

JayYa commented Apr 27, 2021

I haven't tested it

我试过了,管理页面能看到xml配置里的Job和Trigger,也会执行,但因为没有调用 AddQuartzJob,Job实例无法生成,会报 Object reference not set to an instance of an object. 错误。
现在的代码对原来的Quartz侵入有点强...依赖注入这一块都替换了,原来的部分功能也被移除了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants