using PCL.Core.Link.McPing.Model;
using System;
using System.Net;
using System.Threading;
using System.Threading.Tasks;
namespace PCL.Core.Link.McPing;
///
/// Minecraft服务器探测服务接口
///
public interface IMcPingService : IDisposable
{
///
/// 异步探测Minecraft服务器信息
///
/// 取消令牌
/// 服务器探测结果,如果探测失败则返回null
Task PingAsync(CancellationToken cancellationToken = default);
///
/// 获取服务端点信息
///
IPEndPoint Endpoint { get; }
///
/// 获取主机地址
///
string Host { get; }
///
/// 获取超时时间(毫秒)
///
int Timeout { get; }
}