You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
537 B
C#
25 lines
537 B
C#
using Admin.Core.Common;
|
|
using InitQ.Abstractions;
|
|
using InitQ.Attributes;
|
|
using System;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Admin.Core.Extensions
|
|
{
|
|
public class RedisSubscribe : IRedisSubscribe
|
|
{
|
|
|
|
public RedisSubscribe()
|
|
{
|
|
}
|
|
|
|
[Subscribe(RedisMqKey.Loging)]
|
|
private async Task SubRedisLoging(string msg)
|
|
{
|
|
Console.WriteLine($"订阅者 1 从 队列{RedisMqKey.Loging} 消费到/接受到 消息:{msg}");
|
|
|
|
await Task.CompletedTask;
|
|
}
|
|
}
|
|
}
|