Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9184431
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T19:02:56+00:00 2026-06-17T19:02:56+00:00

I understand that you compile the Quartz solution into an exe that can run

  • 0

I understand that you compile the Quartz solution into an exe that can run as a Windows Service. And that somehow this Quartz server runs jobs. What I don’t get is, where do I put all my Job code that actually does the work? Like let’s say I want my “job” to call a stored proc, or to call a web service every hour. Or what if I have native VB code I want to execute? (And I don’t want to create yet another standalone VB app that gets called from the command line.) It wasn’t obvious where all these types of job config would get stored, coded, configured.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T19:02:58+00:00Added an answer on June 17, 2026 at 7:02 pm

    I would suggest you to read the tutorials first.
    You can find lot of useful information on Jay Vilalta’s blog.

    Getting Started With Quartz.Net: Part 1
    Getting Started With Quartz.Net: Part 2
    Getting Started With Quartz.Net: Part 3

    and

    Scheduling Jobs Programmatically in Quartz.Net 1.0

    or

    Scheduling Jobs Programmatically in Quartz.Net 2.0

    and then you can have a look at the github code and try the examples which are very well documented.

    UPDATE:

    The server is the scheduler.
    It’s a windows service application which runs constantly and runs the job you’ve scheduled with a client application.
    You can even write your own server (windows services), as I did, since I didn’t want to use remoting to talk to that layer.

    You can decide to schedule and run jobs in a console application (I wouldn’t suggest that)
    with few lines of code:

    class Program
    {
        public static StdSchedulerFactory SchedulerFactory;
        public static IScheduler Scheduler;
    
        static void Main(string[] args)
        {
            SchedulerFactory = new StdSchedulerFactory();
            Scheduler = SchedulerFactory.GetScheduler();
    
            var simpleTrigger = TriggerBuilder.Create()
                     .WithIdentity("Trigger1", "GenericGroup")
                     .StartNow()
                     .WithSimpleSchedule(x => x.RepeatForever().WithIntervalInSeconds(5))
                     .Build();
    
            var simpleJob = JobBuilder.Create<SimpleJob>()
                                         .WithIdentity("simpleJob", "GenericGroup")
                                         .Build();
    
            Scheduler.ScheduleJob(simpleJob, simpleTrigger);
    
            Console.WriteLine("Scheduler started");
    
            Scheduler.Start();
    
            Console.WriteLine("Running jobs ...");
    
            Console.ReadLine();
    
            Scheduler.Shutdown(waitForJobsToComplete: false);
    
            Console.WriteLine("Shutdown scheduler!");
    
        }
    }
    

    This is the job:

    public class SimpleJob : IJob
    {
        public virtual void Execute(IJobExecutionContext context)
        {
            JobKey jobKey = context.JobDetail.Key;
            Console.WriteLine("{0} Executing job {1} ", DateTime.Now.ToString(), jobKey.Name);
        }
    }
    

    You can download a test project here (VerySimpleQuartzApp).

    The application above does not store trigger/jobs information.

    You can decide if you want to save the information of your jobs/trigger in a XML file as explained here and here.
    Or you can store your jobs/triggers in a database so that the scheduler – usually a windows service – can read those info and run the jobs.

    If you’re looking for an example where you can communicate with the server (via remoting) and schedule a job and run it, this is the one.

    There are a few open source projects (managers) which you can use to start/stop or schedule jobs. Read my answer here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I understand that C++ Traits are compile time properties that can be used to
Possible Duplicate: Understanding Compile- vs Run-time Dependencies I understand that a dependency with the
I understand that they are compile time, so they can't be generic, and must
I understand that Web Site Projects compile source on-the-fly, and Web Application Projects pre-compile
I understand that sizeof is an operator, which is evaluated at compile time to
Is there a way to debug CoffeeScript line-by-line? I understand that it compiles into
I know that google's v8 compiles javascript into native machine (binary if I understand
I understand that this question may be subjective, this is why I need an
I understand that applications under the same domain name can talk to each other
I understand that a user can own a process and each process has an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.