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.
我想将 bbvEventBroker 与 Ninject 一起使用,但是我担心使用魔术字符串来连接发布者和订阅者。有没有一种强类型的方法可以在没有魔术字符串的情况下做到这一点。我需要有一个中央静态魔术字符串存储库吗?
事件经纪人
不,没有。EB 的目的是将发布者和订阅者完全分开,这样他们就不需要知道事件的来源。一个事件也可以有多个发布者,这样就没有唯一的类型作为源。