测试多订阅模式:偶尔订阅为空消息
Closed this issue · 1 comments
anjoy8 commented
如题。
多次连续点击的时候,可能会出现偶尔某个订阅者消息为空:
services.AddInitQ(m =>
{
//时间间隔
m.SuspendTime = 2000;
//redis服务器地址
m.ConnectionString = Appsettings.app(new string[] { "Redis", "ConnectionString" });
//对应的订阅者类,需要new一个实例对象,当然你也可以传参,比如日志对象
m.ListSubscribe = new List<Type>() {
typeof(RedisSubscribe),
typeof(RedisSubscribe2)
};
//显示日志
m.ShowLog = false;
});
wmowm commented
github最新代码已经修复了该问题