Skip to content

coderiekelt/Defib.Net

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Defib.Net Build Status

A free C# library that allows you to send heartbeats to defib.io through any managed programming language such as C# and Visual Basic.

Get started

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);
            }
        }
    }
}

License

Defib-net is free to use under MIT, however we may charge for some services, please look it up before using this library!

About

A .NET wrapper for the Defib.IO service, providing an easy interface for all .NET languages such as C# and Visual Basic

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C# 100.0%