开发者

NServicebus Publisher in WCF

I want to Publish messages from WCF i have it configured as:

Bus =  Configure.With(typeof(Messages).Assembly)
.CustomConfigurationSource(new UserConfigurationSource(action))
.DefaultBuilder()
.MsmqSubscriptionStorage()
.BsonSerializer()
.MsmqTransport()
.IsTransactional(true)
.PurgeOnStartup(false)
.UnicastBus()
.ImpersonateSender(false)
.LoadMessageHandlers()
.CreateBus()
.Start();

but by some reason when the subscriber runs, it does not register as Subscriber, so never receives anything, here is the config of the client:

IBus Bus = Configure.With()
.CustomConfigurationSource(new UserConfigurationSource(unicast, msqm))
.StructureMapBuilder(container)
.MsmqSubscriptionStorage()
.BsonSerializer()
.MsmqTransport()
.IsTransactional(true)
.PurgeOnStartup(false)
.UnicastBus()
.ImpersonateSender(false)
.LoadMessageHandlers()
.CreateBus()
.Start();

Is there something im Missing?

[EDIT] I have also tried with the WithWeb in the Service with n开发者_运维知识库o luck.

[EDIT] Also saw this message

is that really the only option? create another process?

[EDIT] seems like is the only option so i will go with that.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜