nservicebus

Use Bus.Send (not Publish) from web applications (NServiceBus v3.2.0.0)

筅森魡賤 提交于 2019-12-12 03:28:53
问题 We have an asp.net mvc3 application which publishes a number of events. Recently, someone pointed out that we should be sending messages rather than publishing events from the web application and referenced this excellent blog post which makes perfect sense. However, I want to confirm that the points made in the post are still valid for NServiceBus v3.x? Thanks! 回答1: I would imagine that the reasoning behind the post would always hold true, irrespective of the version of NServiceBus. That

nservicebus saga property injection with ninject

孤人 提交于 2019-12-12 03:12:29
问题 I am using ninject when configuring NSB. Here is how I register: public class EndpointConfig : IConfigureThisEndpoint, AsA_Publisher, IWantCustomInitialization { #region Implementation of IWantCustomInitialization public void Init() { var kernel = new StandardKernel(); Configure.With().NinjectBuilder(kernel); kernel.Load(new BackendModule()); } #endregion } public class BackendModule : NinjectModule { #region Overrides of NinjectModule /// <summary> /// Loads the module into the kernel. /// <

Hosting an NServiceBus subscriber in the same application as the producer

两盒软妹~` 提交于 2019-12-12 02:17:39
问题 Is it possible to use NServiceBus to publish and consume messages in the same application, specifically a web application? In the future we will almost certainly need to maintain a separate long running service to process messages generated by this application, and this is why we are hoping to use NServiceBus from the start, but right now it would be nice to just start up the consumer and the publisher when the web application starts. This will make testing and deployment far easier for us. I

nservicebus deleting subscription record after inserting it?

血红的双手。 提交于 2019-12-12 01:18:37
问题 I have been playing with nservicebus for a few weeks now and since everything was going well on my local machine I decided to try to set up a test environment and work on deployment. I am using the generic host that comes with nservicebus and was using the nservicebus.Integration profile when running locally, but would like to use Nservicebus.Production in the test environment. I set up a sql server 2008 database, made changes to my app.config and everything seemed to work fine. But after a

NServiceBus 4.4.2 how do i set the TimeoutPersisterReceiver timespan in config

。_饼干妹妹 提交于 2019-12-11 23:26:17
问题 How do I increase the timespan of the TimeoutPersisterReceiver ? it currently retries for ~1min after arming before firing. I have looked in the documentation but cannot see a config setting for it. We have been having some network issues that prevented a service from talking to the database causing the RepeatedFailuresOverTimeCircuitBreaker to arm itself. INFO NServiceBus.CircuitBreakers.RepeatedFailuresOverTimeCircuitBreaker [(null)] - The circuit breaker for TimeoutStorageConnectivity is

Accessing Context in an IMessageMutator implementer?

懵懂的女人 提交于 2019-12-11 21:11:08
问题 How can I access the current context from within a message mutator? I also need to have access to the saga data. I want to pass certain data transparently from both the sender and implementers (handlers). This data will be set in the outgoing headers. Depending on the situation, if the handler is of type Saga, I want to set some of these properties into the saga data. Later when a call "ReplyToOriginator" is detected, I want to grab the values from saga and set it back into the headers of the

Mixed transports in NServiceBus 4.0

筅森魡賤 提交于 2019-12-11 19:20:10
问题 I'm currently working on a project that combines Java and .NET systems. The communication between the two is from Java over ActiveMQ to .NET MSMQ using BizTalk as a translator. I was wondering if we could cut out BizTalk when using NServiceBus 4.0 and use 2 different transport types in 1 NServiceBus instance. Incoming events should be picked up from ActiveMQ and published using MSMQ. The NServiceBus instance in this case is self-hosted within a WCF service on IIS and injected into the

NServiceBus - Server is throwing empty message warning to the console

有些话、适合烂在心里 提交于 2019-12-11 19:11:58
问题 2013-03-28 10:18:32,374 [Worker.5] WARN NServiceBus.Unicast.UnicastBus [(null)] <(null)> - Received an empty message - ignoring. I have a client that bus.send("server", command) going from an mvc4 website to a message processor. The message processor was setup to be default without any custom initialization. This is my configuration on the website side in the global.asax Configure.With() .StructureMapBuilder(container) .JsonSerializer() .Log4Net() .MsmqTransport() .IsTransactional(false)

How can I use MSMQ in Azure Service Fabric

吃可爱长大的小学妹 提交于 2019-12-11 18:25:10
问题 I have implemented a Proof of Concept in Azure Service fabric that uses Azure Service Bus as a message queue. I'm using nServiceBus within the application to send and respond to messages which makes it very easy to change from one queuing technology to another. I'd like to know if it's possible to use MSMQ instead of Service Bus in Azure Service Fabric as the nodes that are created are just windows 2016 servers and I'm not sure I need something like Service Bus. It's a question I want to

NServiceBus limitations consumers (endpoints)

不羁的心 提交于 2019-12-11 16:28:57
问题 I am currently looking at NServiceBus as a candidate within my architecture and have a pretty good idea what it is and can do. I do have trouble finding a direct answer to one question that I still have. I know that it is build in .NET. It is unclear to me if .NET is a limitation to the publishers & consumers (endpoint?) as well. Simply put, using (for example) Azure ServiceBus I can post a message on a queue with a nodejs application, and a consumer could be an Azure Function (triggered)