Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想创建一个可以向不同选项卡中的另一个模块发送消息的模块。我不知道目标选项卡 ID,但我知道目标模块名称。
有没有办法做这样的事情?Dot net nuke 是否支持消息传递?
DNN 支持 IModuleCommunicator 和 IModuleListener 接口。这些适用于同一页面(选项卡)上的模块。
由于每个请求一次只能访问一个页面,因此不同选项卡上的模块在任何给定时间都不会可靠地加载和执行。由于您无法预测何时甚至是否会加载另一个选项卡,因此最好的方法是将您的消息保存在某处(数据库/文件/消息队列等)并构建另一个模块以在运行时查找消息.