nservicebus

NServiceBus: specifying message order

↘锁芯ラ 提交于 2019-12-19 08:39:45
问题 I'm using NServiceBus in it's own process (so not using the Generic Host) and I would like to have multiple message handlers for a message in a specific order. For the Generic Host, you would implement ISpecifyMessageHandlerOrdering , but I don't know how to do this when hosting your own NServiceBus process since that interface is defined in NServiceBus.Host.exe and I haven't been able to find another way to do this. The purpose of this is user authentication: before the actual message

Not creating queues automatically in NServiceBus

荒凉一梦 提交于 2019-12-18 11:51:51
问题 I'm running NServiceBus 3.0.0 rc2 but when I start the application (as local admin) without pre-creating the MSMQ's it errors with : The queue does not exist or you do not have sufficient permissions to perform the operation. This was not happening using NServiceBus 2.6. Below is my config: var bus = Configure.With() .Log4Net() .NinjectBuilder() .XmlSerializer() .DefiningCommandsAs(t => typeof(ICommand).IsAssignableFrom(t)) .DefiningEventsAs(t => typeof(IEvent).IsAssignableFrom(t))

nServiceBus, Rhino Service Bus, MassTransit - Videos, Demos, Learning Resources

空扰寡人 提交于 2019-12-18 10:16:52
问题 Hey people would love to hear about any resources you have or know about for nServiceBus, Rhino Service Bus and MassTransit. Videos? Blog posts? Books? Demo Projects etc 回答1: The discussion group at Google Groups is a very good resource. So far I have written three articles about nServiceBus at ArtOfBabel.com: Open Source Integration with nServiceBus Up and Running with nServiceBus 1.9 nServiceBus: Building the Solution A few more articles should be available soon too. 回答2: If you are

ASP.NET MVC4 NServiceBus Attribute/Filter StructureMap

我只是一个虾纸丫 提交于 2019-12-14 03:12:08
问题 I'm having issues getting an instance of IBus in an action filter (attribute). From Setting IBus Property in MVC Filter, I know that DI and action filters don't play nice, and I got them play nice using the accepted answer. The problem is that getting DI and action filters to play nice breaks NServiceBus. That same question had a suggestion by John to look at the video store solution to see how to get it done. There are two problems with that answer: It totally ignores the fact that I'm using

Unable to host an NServiceBus Saga from another Service with SQL Persistence

北战南征 提交于 2019-12-14 03:06:37
问题 I am attempting to host a Saga from one project in another project using NServiceBus 6 with SqlPersistence and SqlDialect.MsSqlServer . In most examples I have found, the Saga is contained in the same assembly as the hosting app, and perhaps this is why I am struggling. When hosting everything in the same app, the NServiceBus.Persistence.Sql.MsBuild package correctly outputs Saga .sql files during the build and then picks these up and executes them on run. Using a separate app, only the

Condition when subscribers in NServiceBus send an auto-subscribe message

喜夏-厌秋 提交于 2019-12-13 20:59:04
问题 I am finding out that even when my NSB process does not handle messages for say DTOXXX, it is still sending an auto-subscribe message to the publisher queue for DTOXXX. This is not the desired behavior. I want the process to publish and subscribe to messages for DTOYYY, but any communication using DTOXXX is strictly send only. If that wasn't clear enough I have 2 assemblies that contains my DTO. I Want to establish a pub/sub bus, but only for assemblies in YYY.dll. As for the DTOs in the

NServiceBus - Problem with using TransactionScopeOption.Suppress in message handler

情到浓时终转凉″ 提交于 2019-12-13 19:10:14
问题 I have an endpoint that has a message handler which does some FTP work. Since the ftp process can take some time, I encapsulated the ftp method within a TransactionScope with TransactionScopeOption.Suppress to prevent the transaction timeout exceptions. Doing this got rid of the timeout exceptions, however the handler was fired 5 times (retries is set to 5 in my config file) The files were ftp'd ok, but they were just ftp'd 5 times. the handler look like it is re-fired after 10 or 11 minutes.

Why does NServiceBus on Azure not use my specified endpoint name?

*爱你&永不变心* 提交于 2019-12-13 04:34:59
问题 I have a console app that uses NServiceBus to publish a message to an Azure topic. However, NServiceBus creates a new topic with a different name, instead of the one I specified. Why is this? More details My message configuration looks as follows. This means that messages of Type 'TheResponse' should go to a Topic with the name, "test1", right? <UnicastBusConfig> <MessageEndpointMappings> <add Assembly="Messages" Type="Messages.TheResponse" Endpoint="test1"/> </MessageEndpointMappings> <

NServiceBus filtering messages to subscribers

筅森魡賤 提交于 2019-12-13 03:47:37
问题 I'm just getting started with NService bus and I want to know how to filter message when I send them so that they only go to particular subscribers. For example, lets say I have a database with products that are categorized. My publisher will check the database every N seconds and will send messages when a new product is added to the database. But each subscriber is only interested in a particular category and assuming that I can get the subscriber to send the category they are interested in,

Splitting a build into multiple output directories

青春壹個敷衍的年華 提交于 2019-12-13 02:49:04
问题 I have a solution that uses NServicebus which contains at least 3 projects that are of interest for this scenario; a publisher, a sweep, and a webservice. Basically the sweep(s) gather data for the publisher to store in a database and then publish to subscribers. The webservice gives access to the data stored in the publishers database. When I built this solution on my dev box and deployed to the test environment everything was fine. Last week we started using automated builds on a build