2017-10-04 22:51:12 +00:00
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace NadekoBot.Services
|
2017-07-15 03:04:16 +00:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// All services must implement this interface in order to be auto-discovered by the DI system
|
|
|
|
|
/// </summary>
|
|
|
|
|
public interface INService
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
2017-10-04 22:51:12 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// All services which require cleanup after they are unloaded must implement this interface
|
|
|
|
|
/// </summary>
|
|
|
|
|
public interface IUnloadableService
|
|
|
|
|
{
|
|
|
|
|
Task Unload();
|
|
|
|
|
}
|
2017-07-15 03:04:16 +00:00
|
|
|
|
}
|