简体   繁体   中英

PubSub lib for c#

Is there ac# library which provides similar functionality to the Python PubSub library? I think it's kind of an Observer Pattern which allows me to subscribe for messages of a given topic instead of using events.

根据您的需要,这些内容可能对您来说有点沉重,但是: http: //www.nservicebus.com/ http://blog.phatboyg.com/masstransit/

Note, if you have events for message notification, there are many options for dependancy injection / inversion of control. See Spring.Net and Castle Windsor as two popular frameworks.

看起来NuGet上有几种产品: https ://www.nuget.org/packages ? q = pubsub

再次强调一下,但是OSE库允许您瘦一些。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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