CMB.Services 1.1.1.46

dotnet add package CMB.Services --version 1.1.1.46                
NuGet\Install-Package CMB.Services -Version 1.1.1.46                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CMB.Services" Version="1.1.1.46" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CMB.Services --version 1.1.1.46                
#r "nuget: CMB.Services, 1.1.1.46"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install CMB.Services as a Cake Addin
#addin nuget:?package=CMB.Services&version=1.1.1.46

// Install CMB.Services as a Cake Tool
#tool nuget:?package=CMB.Services&version=1.1.1.46                

Service Library Documentation

The Service Library will allow you to create a Windows service but also run it as a console application. What mode to run the service in shall be controlled by using either the ConsoleServiceController or WindowsServiceController classes. The service must be implemented in a class that derives from the Service class.

Implementing a Service

Below is a simple example of a service implementation:

class MyService : Service
{
    public MyService()
        : base("My Service Name")
    {
    }

    protected override void OnStart(string[] args)
    {
        // Service start up code goes here
    }

    protected override void OnStop()
    {
        // Service shut down code goes here
    }
}

Running as a Windows Service

To run the service as an actual Windows service, use the WindowsServiceController class to start the service.

var service = new MyService();
var controller = new WindowsServiceController();
controller.Run(service);

Running as a Console Application

To run the service as a console application, use the ConsoleServiceController class to start the service.

var service = new MyService();
var controller = new ConsoleServiceController();
controller.Run(service, ConsoleServiceOptions.WaitForStop);
Product Compatible and additional computed target framework versions.
.NET Framework net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.1.46 1,057 7/28/2018
1.0.0.23 2,533 12/3/2015