我们刚刚完成了一组服务,这些服务使用不显眼的模式来查找命令和事件(可能很重要而不是消息)
conventions.DefiningCommandsAs(t => t.Namespace != null && t.Namespace.EndsWith("Commands"));
conventions.DefiningEventsAs(t => t.Namespace != null && t.Namespace.EndsWith("Events"));
conventions.DefiningTimeToBeReceivedAs(
t => t.Name.EndsWith("Expires") ? TimeSpan.FromSeconds(30) : TimeSpan.MaxValue);
现有的网关是我们用来连接的webapi,它根据MessageEndpointMappings
发送的消息类型发布。我希望subcriptions表包含安装后事件的条目。包含/安装的参数
/serviceName:
/displayName:
/description:
/endpointConfigurationType: (for services not the saga)
/username:
/password:
& NServiceBus.Production
网关将被发送新的事件类型并进入发布调用,但服务不会接收它。我认为网关无法发布,因为它不知道新类型。我是否需要在网关配置中添加MessageEndpointMappings
,或者是否应将其转换为不显眼的模式。我认为映射将需要一个它没有的参考,我不确定这两种方法是否兼容。
答案 0 :(得分:0)
简单回答这个问题。现有网关具有不同的模式,并且与配置冲突。