123456789101112131415161718192021 |
- 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}");
- }
- }
- }
- }
|