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.
<PackageVersion Include="TimerEvent" Version="1.0.6" />
<PackageReference Include="TimerEvent" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add TimerEvent --version 1.0.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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.
#addin nuget:?package=TimerEvent&version=1.0.6
#tool nuget:?package=TimerEvent&version=1.0.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 | Versions 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.
-
- EventManager (>= 1.0.6)
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.