增加RCU上离线功能,能耗双通道
This commit is contained in:
22
Redis定阅/Program.cs
Normal file
22
Redis定阅/Program.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using Common;
|
||||
using CommonEntity;
|
||||
using static CSRedis.CSRedisClient;
|
||||
|
||||
namespace Redis定阅
|
||||
{
|
||||
internal class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
Console.WriteLine("Hello, World!");
|
||||
|
||||
var DingYue3 = ("redis-power", new Action<SubscribeMessageEventArgs>(async (args) =>
|
||||
{
|
||||
string body = args.Body;
|
||||
|
||||
NengHao? poo = System.Text.Json.JsonSerializer.Deserialize<NengHao>(body);
|
||||
}));
|
||||
CSRedisCacheHelper.redis.Subscribe(DingYue3);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user