Coder Social home page Coder Social logo

every's Introduction

Ever.y

Ever.y is a fluent API job scheduling engine for .NET.

Please feel free to issue PRs or suggest improvements or new features.

Installation

Ever.y can be found on NuGet. Search for Ever.y in the NuGet Package Manager, or use the Package Manager Console:

Install-Package Ever.y

Examples

Ever.y().Second.Do(() => Console.WriteLine("Every second"));
Ever.y(2).Days.At(15).Do(() => Console.WriteLine("Every 2 days at 15:00"));
Ever.y(3).rd(Fri.day).OfTheMonth.At(16, 30).Do(() => Console.WriteLine("Every 3rd Friday of the month at 16:30"));
Ever.y().Day.At(12).Utc(-4).Do(() => Console.WriteLine("Every day at 12:00 in the UTC-04:00 time zone"));
Ever.y(21).stOfTheMonth.At(7, 45).Do(() => Console.WriteLine("Every 21st of the month at 7:45"));

Once.After(2).Seconds.Do(() => Console.WriteLine("Once, after 2 seconds"));
class MyClass { public string MyProp { get; set; } }
//...
Action<Job<MyClass>> job = (j) => Console.WriteLine($"My job has metadata: {j.Metadata.MyProp}");
var metadata = new MyClass { MyProp = "Hello World!" };

Ever.y(Thurs.day).At(4).Do(job, metadata); // Every Thursday at 04:00, do job

Credits

Icon by Freepik.

every's People

Contributors

mlowijs avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.