CI / Go Backend (push) Canceled after 0s
初始化 monorepo: Go后端(7微服务) + Unity客户端(9模块) + 启动器 HTML5原型: Three.js 3D体素世界, Perlin噪声地形, 原版材质, 22种方块 Minecraft创造模式背包: 双栏布局, 拖拽移动物品, 方向性元件引脚 AI助搭策划文档 + 客户端/服务端骨架 + Docker Compose + CI
36 lines
890 B
C#
36 lines
890 B
C#
using PCL.Core.Link.McPing.Model;
|
|
using System;
|
|
using System.Net;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace PCL.Core.Link.McPing;
|
|
|
|
/// <summary>
|
|
/// Minecraft服务器探测服务接口
|
|
/// </summary>
|
|
public interface IMcPingService : IDisposable
|
|
{
|
|
/// <summary>
|
|
/// 异步探测Minecraft服务器信息
|
|
/// </summary>
|
|
/// <param name="cancellationToken">取消令牌</param>
|
|
/// <returns>服务器探测结果,如果探测失败则返回null</returns>
|
|
Task<McPingResult?> PingAsync(CancellationToken cancellationToken = default);
|
|
|
|
/// <summary>
|
|
/// 获取服务端点信息
|
|
/// </summary>
|
|
IPEndPoint Endpoint { get; }
|
|
|
|
/// <summary>
|
|
/// 获取主机地址
|
|
/// </summary>
|
|
string Host { get; }
|
|
|
|
/// <summary>
|
|
/// 获取超时时间(毫秒)
|
|
/// </summary>
|
|
int Timeout { get; }
|
|
}
|