GrumpyBusted / Grumpy.ServiceBase

Windows Service Base using Topshelf as a ServiceRunner

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build status codecov nuget downloads

Grumpy.ServiceBase

Base class for building Windows Services, using Topshelf as a Service Host. This base class simplify building cancelable windows services.

public static class Program
{
    private static void Main()
    {
        // One line main procedure
        TopshelfUtility.Run<MyService>();
    }
}

// Sample Service
public class MyService : TopshelfServiceBase
{
    protected override void Process(CancellationToken cancellationToken)
    {
        // Start your service
    }
}

About

Windows Service Base using Topshelf as a ServiceRunner

License:MIT License


Languages

Language:C# 100.0%