NserviceBus start Event
I want to configure Dependency Injection with Ninject in my application, and my project is a Subscriber class library. What is the first event produced b开发者_Python百科y NserviceBus for initialize my kernel and modules bindings?
What you need to do is in NServiceBus.Host.exe.config define your EndpointConfigurationType
<appSettings>
<add key="EndpointConfigurationType" value="<Assembly>", <Namespace>"/>
</appSettings>
After this define a class
public class EndpointConfiguration : AsA_Server, IWantCustomInitialization, IConfigureThisEndpoint
{
public void Init()
{
/do Ninject stuff here
}
}
Hope this makes sense. Let me know if you need more clarification. Good luck.
精彩评论