namespace Abp.Threading
{
///
/// Interface to start/stop self threaded services.
///
public interface IRunnable
{
///
/// Starts the service.
///
void Start();
///
/// Sends stop command to the service.
/// Service may return immediately and stop asynchronously.
/// A client should then call method to ensure it's stopped.
///
void Stop();
///
/// Waits the service to stop.
///
void WaitToStop();
}
}