cs-windows-service-toolkit 1.0.1

Windows Service Toolkit

Install-Package cs-windows-service-toolkit -Version 1.0.1
dotnet add package cs-windows-service-toolkit --version 1.0.1
<PackageReference Include="cs-windows-service-toolkit" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add cs-windows-service-toolkit --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

cs-windows-service-toolkit

Toolkit that provides convenient methods for .NET application to easily integrate background windows services

Install

Install-Package cs-windows-service-toolkit

Usage

The sample code shows how to use this lib:

namespace WindowsServiceToolkit
{
    class Program
    {
        static void Main(string[] args)
        {
            string serviceName = "notepad";
            int timeoutMilliseconds = 1000;
            WinServiceUtil.StartService(serviceName, timeoutMilliseconds);
            WinServiceUtil.IsServiceInstalled(serviceName);
            WinServiceUtil.StopService(serviceName, timeoutMilliseconds);
            WinServiceUtil.RestartService(serviceName, timeoutMilliseconds);
        }
    }
}

cs-windows-service-toolkit

Toolkit that provides convenient methods for .NET application to easily integrate background windows services

Install

Install-Package cs-windows-service-toolkit

Usage

The sample code shows how to use this lib:

namespace WindowsServiceToolkit
{
    class Program
    {
        static void Main(string[] args)
        {
            string serviceName = "notepad";
            int timeoutMilliseconds = 1000;
            WinServiceUtil.StartService(serviceName, timeoutMilliseconds);
            WinServiceUtil.IsServiceInstalled(serviceName);
            WinServiceUtil.StopService(serviceName, timeoutMilliseconds);
            WinServiceUtil.RestartService(serviceName, timeoutMilliseconds);
        }
    }
}

Release Notes

Windows Service Toolkit in .NET 4.6.1

Dependencies

This package has no dependencies.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.1 304 4/30/2018