using LumaTunnel.Server.Core.Runtime; using LumaTunnel.Shared.Models; using LumaTunnel.Shared.Protocol; using XFEExtension.NetCore.ServerInteractive.Attributes; using XFEExtension.NetCore.ServerInteractive.Implements.CoreService; namespace LumaTunnel.Server.Core.Services; public partial class HealthService : ServerCoreStandardServiceBase { [EntryPoint("v1/health")] public async Task GetHealthAsync() { var runtime = ServerRuntime.Current; await Close(new NodeHealthDto( runtime.Settings.NodeId, runtime.Settings.NodeName, typeof(HealthService).Assembly.GetName().Version?.ToString(3) ?? "0.1.0", TunnelProtocol.Version, DateTimeOffset.UtcNow, true)).ConfigureAwait(false); } }