增加日志打印

This commit is contained in:
2026-01-28 16:00:27 +08:00
parent 2308aee42f
commit b0cb5f7bd5
4 changed files with 20 additions and 2 deletions

View File

@@ -29,6 +29,7 @@ using System.Runtime.CompilerServices;
using System.Messaging;
using System.Web.UI.WebControls.WebParts;
using System.Net.Http;
using Common;
namespace TestWebSocket
{
@@ -147,6 +148,8 @@ namespace TestWebSocket
while (true)
{
Console.WriteLine("write Redis Now time");
CSRedisCacheHelper.Set("LastWebCmdTime", DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"), 5);
Message msgRx = mq.Receive();
msgRx.Formatter = new XmlMessageFormatter(new Type[] { typeof(string) });
string strRx = msgRx.Body.ToString();