Search code examples
c#nservicebusnservicebus4

How configure NServicebus V4 ConfigurarionComplete event handlers in V5?


In V4 of NServicebus there use to be an ConfigurationComplete event that we can make use of in INeedInitialization implemetation to hook up the event handlers like

Configure.ConfigurationComplete += () => { };

In V5 it looks like ConfigurationComplete is removed. I have already looked at http://docs.particular.net/nservicebus/upgradeguides/4to5diff and http://docs.particular.net/nservicebus/upgradeguides/4to5#if-using-manual-references

I don't see any clear documented path for this.

Has anyone faced this? Is there any recommended way of handling this?

Thanks in advance!


Solution

  • Try IWantToRunWhenConfigurationIsComplete, Will this help?