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