Questions tagged [nservicebus5]

NServiceBus is a highly pluggable, reliable, open source Enterprise Service Bus built on .NET.

NServiceBus is a highly pluggable, reliable, open source Enterprise Service Bus built on .NET.

69 questions
1
vote
0 answers

Handler multiple time execution issue

Facing issues in handler of Nservicebus. Handler executing multiple times. please find the code below. Facing problem after running this code the handler in letthandler class is getting executed multiple time. Lett handler class public Task…
1
vote
2 answers

NServiceBus unit testing ConfigureHowToFindSaga

I would like to test ConfigureHowToFindSaga method in my NServiceBus Saga. Just had what seems like an avoidable issue where I'd forgotten to put the Unique attribute on Saga Data. I could use Moq or similar but it awkward to verify the unique…
Captain John
  • 1,859
  • 2
  • 16
  • 30
1
vote
1 answer

How can I see the destination of an nserviceBus message?

In version 5 of nServiceBus I have a Behavior that keeps track of messages in flight. In the Behavior I was able to access DeliveryOptions(SendOptions) and see the Destination Queue, in NSB 6 with the change to the Behavior I can't seem to access…
shenku
  • 11,969
  • 12
  • 64
  • 118
1
vote
1 answer

NServiceBus unit testing: ExpectSend not fulfilled when bus.Send()

I'm using NServiceBus5.2.21, NServiceBus.Testing5.2.1, Moq4.0.1, NUnit3.2.0 Problem: ExpectSend<> keeps failing with "ExpectedSendInvocation not fulfilled" when _bus.Send() is called correctly. Not sure what I'm missing…
Jake
  • 53
  • 5
1
vote
1 answer

NServiceBus unable to receive message

I'm following the NServiceBus getting started guide (version 5) and I get the below error. When the client sends a command to the server, the server has issues to receive the message. The code is okay, because the exact same code on another machine…
Aetherix
  • 2,150
  • 3
  • 24
  • 44
1
vote
3 answers

How to design a NServiceBus Saga started by receipt of multiple messages

I am trying to find help on designing a Saga in NServiceBus 5.x that is started by 2 or more messages. This means that the saga will not start with a single message, but all messages must be present before the saga starts. I don't quite understand…
John
  • 3,591
  • 8
  • 44
  • 72
1
vote
1 answer

NServiceBus - Scanning all assemblies

NServiceBus.dll - Version 5.2.9 & NServiceBus.Host - Version 6.0.0 I am developing a workflow application with pluggable addins. In my solution I have a NServiceBus host assembly which I host using the NServiceBus.Host.exe. To prevent scanning I…
1
vote
1 answer

Prototype project with RabbitMQ+RavenDB repeated SharedQueue closed errors from RabbitMQ

I've created a simple saga prototype project with RabbitMQ as the transport and RavenDB as the persistence mechanism. The prototype actually runs as expected, but every few seconds i get this error msg: ERROR…
Amy
  • 11
  • 1
1
vote
0 answers

USing Entity Framework in NServiceBus endpoint throws EntityException "The underlying provider failed on Open"

I have an NServiceBus 5.2.9 endpoint and I am injecting a DBContext instance through NServiceBus. Configuration: public class ConfigureDependencyInjection : INeedInitialization { public void Customize( BusConfiguration configuration ) { …
John
  • 3,591
  • 8
  • 44
  • 72
1
vote
1 answer

Which ServiceControl.Contracts messages should IHandle?

I'm trying to make sure that 3rd party dependencies are running, and built a service to do this based on the Monitoring 3rd party Sample Application, which emits ServiceControl CheckResult messages. This works fine; ServicePulse alerts me when I…
Justin
  • 501
  • 5
  • 13
1
vote
1 answer

In CQRS how to work with NServiceBus to update Command and Query store

In CQRS, how do you make sure a command handler is updating the write store and read store transactionally? I am not sure if these two steps are suppoed to be a transaction? Or do you rely on eventual consistency here? Meaning the read store will be…
John
  • 3,591
  • 8
  • 44
  • 72
1
vote
2 answers

Nservicebus Sequence

We have a requirement for all our messages to be processed in the order of arrival to MSMQ. We will be exposing a WCF service to the clients, and this WCF service will post the messages using NServiceBus (Sendonly Bus) to MSMQ. We are going to…
Mike
  • 21
  • 5
1
vote
3 answers

NServiceBus & IoT - place a message from client directly in queue and process with NServiceBus at server side

Out back-end is written in .NET using NServiceBus (version 5). Until now, our clients (both .NET clients and c++ clients) were sending messages to a WCF service that has NServiceBus, and the WCF service send the NServiceBus message to the right…
developer82
  • 13,237
  • 21
  • 88
  • 153
1
vote
0 answers

NServiceBus generates XML message without simple type namespaces

I'm currently upgrading from NServiceBus 4.7.5 to NServiceBus 5.2.4, and when using the XmlSerializer, I noticed that it generates an invalid XML message when I try to serialize a message - the namespaces for the simple types are no longer…
Leon Bouquiet
  • 4,159
  • 3
  • 25
  • 36
1
vote
1 answer

NServiceBus 5 - Get handlers mapping

I have a NServiceBus project and it maps objects in my assemblies that implement IHandleMessage. I'm wondering if there is any way to get a list of all mappings of Classes to their Handlers?
developer82
  • 13,237
  • 21
  • 88
  • 153