应用服务管理模块,从Stardust迁移到StarAgent
智能大石头 authored at 2024-07-08 20:51:34
458.00 B
Stardust
using Stardust.Models;

namespace Stardust.Managers;

/// <summary>服务处理器接口</summary>
public interface IServiceHandler
{
    /// <summary>启动服务</summary>
    /// <returns></returns>
    Boolean Start(ServiceInfo service);

    /// <summary>停止服务</summary>
    /// <param name="reason"></param>
    void Stop(String reason);

    /// <summary>检查服务是否正常</summary>
    /// <returns></returns>
    Boolean Check();
}