C# Class Prototype.Service.Services.SampleService

Sample service to demonstrate topshelf microservice
Inheritance: ServiceControl, ISampleService
Mostrar archivo Open project: radicalgeek/SampleMicroservice

Public Methods

Method Description
SampleService ( ILogger logger, IMessageSubscriber sampleMessageSubscriber ) : Prototype.Logger
Start ( HostControl hostControl ) : bool

Start the service

Stop ( HostControl hostControl ) : bool

Stops the service

Method Details

SampleService() public method

public SampleService ( ILogger logger, IMessageSubscriber sampleMessageSubscriber ) : Prototype.Logger
logger ILogger
sampleMessageSubscriber IMessageSubscriber
return Prototype.Logger

Start() public method

Start the service
public Start ( HostControl hostControl ) : bool
hostControl HostControl the topshelf host
return bool

Stop() public method

Stops the service
public Stop ( HostControl hostControl ) : bool
hostControl HostControl the topshelf host
return bool