Skip to content

GrumpyBusted/Grumpy.ServiceBase

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages