TimerEvent 1.0.6

dotnet add package TimerEvent --version 1.0.6
NuGet\Install-Package TimerEvent -Version 1.0.6
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="TimerEvent" Version="1.0.6" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add TimerEvent --version 1.0.6
#r "nuget: TimerEvent, 1.0.6"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install TimerEvent as a Cake Addin
#addin nuget:?package=TimerEvent&version=1.0.6

// Install TimerEvent as a Cake Tool
#tool nuget:?package=TimerEvent&version=1.0.6

TimerEvent

The TimerEvent package encapsulates the native System.Timers.Timer and the EventManager library together into a event-driven user friendly object.

You can specify a delay in millisecond and a number of repeat or make it a endless loop

You can then add event listeners to it to get the needed callbacks

Sources

https://github.com/kevincastejon/cs-timer-event

Nuget package

https://www.nuget.org/packages/TimerEvent/

Documentation

https://github.com/kevincastejon/cs-timer-event/tree/master/Documentation/html

Basic usage:

// Instantiates a timer that will fire 3 times every 1000 ms
Timer t = new Timer(1000, 3);
// Adds listeners to it
t.AddEventListener<TimerEvent>(TimerEvent.Names.TIMER, TimerHandler);
t.AddEventListener<TimerEvent>(TimerEvent.Names.TIMER_COMPLETE, TimerHandler);
// Starts the timer
t.Start();

private void TimerHandler(TimerEvent e)
{
Timer t = e.Target as Timer;
Console.WriteLine(e.Name+" Repeat Count:"+t.RepeatCount+"/"+t.Repeat+"  Delay:"+t.Delay+"ms  Running:"+t.Running);
}

Product Compatible and additional computed target framework versions.
.NET Framework net461 is compatible.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on TimerEvent:

Package Downloads
UDPManager

The UDPManager package offers a event-driven framework on top of UDP with many reliability options, peer-to-peer communication, server and client connection features, and much more.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.6 786 2/27/2020
1.0.5 465 2/18/2020
1.0.4 571 2/12/2020
1.0.3 844 2/10/2020
1.0.2 580 2/10/2020
1.0.1 554 2/9/2020
1.0.0 545 2/9/2020