using TouchSocket.Core;
using System.Threading.Tasks;
using System;
namespace TouchSocket.Sockets
{
///
/// IServicePlugin
///
public interface IServicePlugin : IPlugin
{
///
/// 当服务器执行后时。
///
/// 注意:此处并不表示服务器成功启动,具体状态请看
///
///
///
///
[AsyncRaiser]
void OnStarted(object sender, ServiceStateEventArgs e);
///
/// 当服务器执行后时。
///
/// 注意:此处并不表示服务器成功启动,具体状态请看
///
///
///
///
Task OnStartedAsync(object sender, ServiceStateEventArgs e);
///
/// 当服务器调用或者时
///
///
///
[AsyncRaiser]
void OnStoped(object sender, ServiceStateEventArgs e);
///
/// 当服务器调用或者时
///
///
///
Task OnStopedAsync(object sender, ServiceStateEventArgs e);
}
}