Quartz.net Holes in configuration file


Let’s talk about the configuration here Quartz.netHole in profile

1、quartz_ jobs.xml Configure nodes in

Key value
    Value value

———-When configuring in the value here, you should pay attention not to appear%, &? Wait for special characters, or your job won’t work

2. If your Quartz.net It is independent and deployed to the server. Each update does not need to update the main program

There’s a way to do this in your main program

obj.Invoke(settings["ClassLib"].ToString(), "executeJob", new object[] { settings, context.JobDetail.Key.Name });

   Here “executejob” is the starting method name of each job

And then yoursquartz_ jobs.xml Configuration needs attention

Main program library name. Folder name. Class name, solution name

        The file path of the deployment server -- * * / * * / * *. DLL
        Database name + class name in the job --- library name. Class name


Recommended Today

The ultimate solution of fluent state management geTx Part 3 – dependency injection

GeTx Chapter 3 – dependency injection Why use dependency injection What is dependency injection Originally, we accepted various parameters to construct an object, but now we only accept one parameter – the instantiated object. Purpose of dependency injection Dependency injection is to separate the configuration and use of dependent components to reduce the coupling between […]