NServiceBus - using DBSubscriptionStorageConfig, but SQl server subscription table doesn't show any record
After adding section for SQL Database to handle subscriptions, My subscriber config looks like this
;initial catalog=NServiceBus;Integrated Security=SSPI"/>
I changed the endpoint class as follows
class EndpointConfig : IConfigureThisEndpoint, AsA_Server , IWantCustomInitialization
{
public void Init()
{
NServiceBus.Configure.With()
.Log4Net()
.DefaultBuilder()
.XmlSerializer()
.UnicastBus()
.ImpersonateSender(false)
.DBSubcriptionStorage();
}
}
When I fire up the application, where subscribers au开发者_如何学编程tomatically subscribe, I don't see any entries in the subscription DB. Also I don't see any error reported by the application... Anything I am missing in the config file...
Appreciate any help...
When using the builtin roles like As_aServer the role config takes precedence. So in your case the db sub.storage will only be used if you use As_aPublisher + run in the "production" profile.
精彩评论