Skip to content

Fluxter/Fluxter.CronDaemon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fluxter CronManager

A small library for cron like execution

Installation

Install-Package Fluxter.CronDaemon or dotnet add package Fluxter.CronDaemon

Example

Basic Usage

var daemon = new CronDaemon();
daemon.AddJob("* * * * * *", () =>
{
    // Do Work
    // This gets executed every minute.
});
daemon.Start();

In a small console application

namespace Application
{
    using Fluxter.CronDaemon;

    internal class Program
    {
        private static void Main(string[] args)
        {
            var daemon = new CronDaemon();
            daemon.AddJob("* * * * * *", () =>
            {
                // Do Work
                // This gets executed every minute.
            });
            daemon.Start();
        }
    }
}