混合自动订阅和消息点映射
Mixing autosubscribe and messagepoint mappings
我们刚刚完成了一组使用非干扰模式查找命令和事件(可能重要的不是消息)的服务
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
发送的消息类型进行发布。我期待订阅 table 包含安装后的事件条目。 /install 的参数包括
/serviceName:
/displayName:
/description:
/endpointConfigurationType: (for services not the saga)
/username:
/password:
& NServiceBus.Production
向网关发送了新的事件类型并将其发送到发布调用,但服务未接收到。我认为网关无法发布,因为它不知道新类型。我需要在网关配置中添加 MessageEndpointMappings
还是应该将其转换为非干扰模式。我认为映射将需要一个它无论如何都没有的引用,我不确定这两种方法是否兼容。
简单回答这个问题。现有网关具有不同的架构并且与配置冲突。
我们刚刚完成了一组使用非干扰模式查找命令和事件(可能重要的不是消息)的服务
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
发送的消息类型进行发布。我期待订阅 table 包含安装后的事件条目。 /install 的参数包括
/serviceName:
/displayName:
/description:
/endpointConfigurationType: (for services not the saga)
/username:
/password:
& NServiceBus.Production
向网关发送了新的事件类型并将其发送到发布调用,但服务未接收到。我认为网关无法发布,因为它不知道新类型。我需要在网关配置中添加 MessageEndpointMappings
还是应该将其转换为非干扰模式。我认为映射将需要一个它无论如何都没有的引用,我不确定这两种方法是否兼容。
简单回答这个问题。现有网关具有不同的架构并且与配置冲突。