简体   繁体   中英

NServiceBus not publishing any messages

I'm working with NSB (latest version), got to the stage where I configure it correctly and manage to publish messages onto the bus. Only problem is - I'm not getting any of them in my message queues. The event log is clean - nothing to help me diagnose the error.

Help greatly appreciated!

The description of your problem is pretty brief, but since you are not getting any error messages and you're using the word "publish", I am guessing that you have forgotten to subscribe to your message.

Services that want to receive a published message need to issue a call to bus.Subscribe<SomeMessageType> somewhere - possible in the Run method of a class that implements IWantToRunAtStartup .

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