简体   繁体   English

Nservice总线…发布者订阅者正在筛选订阅者

[英]Nservice bus … Publisher subscriber Filtering subscribers

I am beginner in Nservice bus I have an webapplication and a desktop windows applicaton the web application will publish some events and the desktop windows will subscribe to receive that events. 我是Nservice总线的初学者,我有一个Web应用程序和一个桌面窗口,该Web应用程序将发布一些事件,而桌面窗口将订阅以接收该事件。

The windows application will be installed on multiple different machines and i imagin that every instance will act as subscriber. Windows应用程序将安装在多台不同的计算机上,我想每个实例都将充当订户。

each instance would be used by different user , the user would not be intrested in receiving everything ,he should receive the message only depending on his category . 每个实例将由不同的用户使用,用户不会被吸引接收所有内容,他应该仅根据他的类别接收消息。

is it possible to filter the subscribers who should recieve this message before publishing it in case they already subscribed 如果他们已经订阅了,是否有可能在发布之前过滤应该接收此消息的订阅者

The scenario you are describing is content based routing, not supported in NSB v5.x. 您描述的场景是基于内容的路由,NSB v5.x不支持。

A solution can be to discard of the message in the message handler on the subscriber... 解决方案可以是在订阅服务器上的消息处理程序中丢弃消息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM