A free C# library that allows you to send heartbeats to defib.io through any managed programming language such as C# and Visual Basic.
I have included a simple sample in the solution of this project, if you however do not have the time to look that up here is a very simple example that will failures and successfull heartbeats in a console window.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DefibNet;
namespace HeartbeatTest
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("hearbeats: 0");
Console.WriteLine("exceptions: 0");
Console.WriteLine("failed: 0");
Heartbeat heartbeat = new Heartbeat("YOUR KEY HERE", 60);
while (true)
{
Console.SetCursorPosition(11, 0);
Console.Write(Heartbeat.Reporter.beats);
Console.SetCursorPosition(12, 1);
Console.Write(Heartbeat.Reporter.exceptions);
Console.SetCursorPosition(8, 2);
Console.Write(Heartbeat.Reporter.errors);
}
}
}
}
Defib-net is free to use under MIT, however we may charge for some services, please look it up before using this library!