using Garnet; namespace ProductionLineMonitorGarnet { internal class Program { static void Main(string[] args) { try { using var server = new GarnetServer(args); server.Start(); Thread.Sleep(Timeout.Infinite); } catch (Exception ex) { Console.WriteLine($"由于异常无法初始化服务器:{ex.Message}"); } } } }