https://github.com/grumpybusted/grumpy.servicebase
Windows Service Base using Topshelf as a ServiceRunner
https://github.com/grumpybusted/grumpy.servicebase
cancellation servicebase servicehost
Last synced: 7 months ago
JSON representation
Windows Service Base using Topshelf as a ServiceRunner
- Host: GitHub
- URL: https://github.com/grumpybusted/grumpy.servicebase
- Owner: GrumpyBusted
- License: mit
- Created: 2018-01-20T19:09:49.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-08-01T09:05:17.000Z (over 6 years ago)
- Last Synced: 2025-06-12T21:18:57.923Z (8 months ago)
- Topics: cancellation, servicebase, servicehost
- Language: C#
- Size: 38.1 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://ci.appveyor.com/project/GrumpyBusted/grumpy-servicebase)
[](https://codecov.io/gh/GrumpyBusted/Grumpy.ServiceBase)
[](https://www.nuget.org/packages/Grumpy.ServiceBase/)
[](https://www.nuget.org/packages/Grumpy.ServiceBase/)
# Grumpy.ServiceBase
Base class for building Windows Services, using Topshelf as a Service Host. This base class simplify building
cancelable windows services.
```csharp
public static class Program
{
private static void Main()
{
// One line main procedure
TopshelfUtility.Run();
}
}
// Sample Service
public class MyService : TopshelfServiceBase
{
protected override void Process(CancellationToken cancellationToken)
{
// Start your service
}
}
```