RaspberryIO/Unosquare.Swan.Lite/Abstractions/IWorker.cs

17 lines
398 B
C#
Raw Normal View History

2019-12-04 17:10:06 +01:00
namespace Unosquare.Swan.Abstractions {
/// <summary>
/// A simple interface for application workers.
/// </summary>
public interface IWorker {
2019-02-17 14:08:57 +01:00
/// <summary>
2019-12-04 17:10:06 +01:00
/// Should start the task immediately and asynchronously.
2019-02-17 14:08:57 +01:00
/// </summary>
2019-12-04 17:10:06 +01:00
void Start();
/// <summary>
/// Should stop the task immediately and synchronously.
/// </summary>
void Stop();
}
2019-02-17 14:08:57 +01:00
}