Skip to content

A powerful C# library built on top of Quartz.NET for efficient and flexible job scheduling, making it easy to manage and automate tasks in your applications.

License

Notifications You must be signed in to change notification settings

HamedStack/HamedStack.Quartz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

citrine

class Program
{
    async static Task Main(string[] args)
    {

        await QuartzScheduler.Enqueue(() => Console.WriteLine(DateTime.Now), true);

        await QuartzScheduler.Enqueue<Email>(x => Console.WriteLine(x.Address + " " + DateTime.Now), true);

        await QuartzScheduler.Delay(() => Console.WriteLine(DateTime.Now), TimeSpan.FromSeconds(3), true);

        await QuartzScheduler.Delay<Email>(x => Console.WriteLine(x.Address + " " + DateTime.Now), TimeSpan.FromSeconds(5), true);

        await QuartzScheduler.Schedule(() => Console.WriteLine(DateTime.Now), TimeSpan.FromSeconds(7), TimeSpan.FromSeconds(1), true);

        await QuartzScheduler.Schedule(() => Console.WriteLine(DateTime.Now), 7, 1);

        await QuartzScheduler.Schedule(() => Console.WriteLine(DateTime.Now), "0 0/5 * * * ?");

        await QuartzScheduler.Schedule(() => Console.WriteLine("With TriggerBuilder"),
                builder => builder.StartNow()
                                  .WithSimpleSchedule(x => x
                                  .WithIntervalInSeconds(10)
                                  .RepeatForever()));
    }
}

Icons made by Freepik from www.flaticon.com

Releases

No releases published

Packages

No packages published

Languages