using System;
namespace SystemTemperatureService.Framework
{
///
/// The interface that any windows service should implement to be used
/// with the GenericWindowsService executable.
///
public interface IWindowsService : IDisposable
{
///
/// This method is called when the service gets a request to start.
///
/// Any command line arguments
void OnStart(string[] args);
///
/// This method is called when the service gets a request to stop.
///
void OnStop();
///
/// This method is called when a service gets a request to pause,
/// but not stop completely.
///
void OnPause();
///
/// This method is called when a service gets a request to resume
/// after a pause is issued.
///
void OnContinue();
///
/// This method is called when the machine the service is running on
/// is being shutdown.
///
void OnShutdown();
///
/// This method is called when a custom command is issued to the service.
///
/// The command identifier to execute.
void OnCustomCommand(int command);
}
}