发布者和订阅者都启动时没有错误,但订阅者在我发布消息时没有响应(它应该在屏幕上打印一些内容)。请帮忙!!
订阅者 app.config 如下所示:
<add Messages = "Messages" Assembly = "Messages" Endpoint = "MyPublisher" />
发布者的端点:
Configure.With()
.DefaultBuilder()
.JsonSerializer
.DefiningEventsAs(t => t.Namespace != null && t.Namespace == "Messages")
.MsmqSubscriptionStorage
订阅者的端点:
Configure.With()
.DefaultBuilder()
.JsonSerializer
.DefiningEventsAs(t => t.Namespace != null && t.Namespace == "Messages");