Questions tagged [nservicebus]

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

The most popular Service Bus for .NET

Simple and easy publish/subscribe communication over any transport, on premise and in the cloud. Get enterprise-grade scalability and reliability for your workflows and integrations without any messy XML configuration - just pure-code bliss. Runs on MSMQ, RabbitMQ, Azure, and more – optimally configured out of the box so you can focus on your business logic.

Resources

Installation

NServiceBus can most easily be installed through its NuGet package.

Install-Package NServiceBus
2232 questions
0
votes
1 answer

Using Sagas with Recoverabilty

We are having an issue with recovery for messages originating from Sagas. When a Saga sends a message for processing, the message handler can sometimes fail with an exception. We currently use a try/catch and when an exception is thrown, we "Reply"…
Nathan A
  • 11,059
  • 4
  • 47
  • 63
0
votes
2 answers

polling from nservicebus input queue

I just started writing pub/sub and the way that I doing this is that I will have a console app that runs every x hours and putting processed list as queue message (1 item per message). Now, on the pub side, I want to listen the input queue and as…
Tony
  • 3,319
  • 12
  • 56
  • 71
0
votes
1 answer

Add Azure Service Bus Rules via HTTP

I am changing the way my code receives messages from an Azure Service Bus Subscription. Previously I was using the SDK classes and now I am changing to http REST calls. In order to create a rule for a subscription and set a filter on this rule, I…
Igor Kondrasovas
  • 1,479
  • 4
  • 19
  • 36
0
votes
1 answer

NServiceBus distrubutor sample

I started to learn about NServiceBus, and anyone knows if there any sample for distrubutor? Thanks.
Tony
  • 3,319
  • 12
  • 56
  • 71
0
votes
1 answer

Add data to database and queue without transactions using NServiceBus

I'm currently developing a REST api. The api performs basic crud operations. Data is synced to a legacy system using RabbitMQ. The api is running on SQL Server as a DB. I'm wondering how to make sure data is saved in the DB and a message is put on…
0
votes
1 answer

NService Bus Access Denied when logging within service Fabric

I have an issue that has come up out of nowhere in NServiceBus System.UnauthorizedAccessException HResult=0x80070005 Message=Access to the path 'd:\SfDevCluster\Data\_App\_Node_0\PATH\.diagnostics' is denied. Source=mscorlib StackTrace: …
Paul
  • 2,773
  • 7
  • 41
  • 96
0
votes
2 answers

How to open multiple sql connections with ADO when handling an nservicebus message

I have a message handler using NServiceBus that needs to execute SQL code on two different databases. The connection strings have different initial catalogs but are otherwise identical. When the message is picked up, the first sql connection opens…
SomeGuy1989
  • 483
  • 4
  • 8
0
votes
2 answers

Manually creating a subscription for InMemoryPersistence in NServiceBus 5

I'm trying to create a 'once-off' process which will pre-load my service with a bunch of data by raising the appropriate events in NServiceBus 5. However I'm struggling with how I might configure my 'fake' subscription so the events get published to…
antmeehan
  • 865
  • 9
  • 11
0
votes
1 answer

How to configure NServiceBus with RabbitMQ that has LDAP enabled

Rabbit MQ set up in my organization uses LDAP for Authenticaton and Authorization. How can I configure NServiceBus (or RabbitMQ) to use the credentials that the service is running under (- like integrated security for SQL Connections). Rabbmit MQ…
Bitmask
  • 918
  • 2
  • 11
  • 22
0
votes
1 answer

Concurrent Handle calls in NServiceBus

I would like my IHandleMessages.Handle(X x) methods to be called concurrently by NSB. Even when configuring the default host AsA_Client - which turns off transactions - and providing two or more threads (NumberOfWorkerThreads="3" in App.Config),…
0
votes
2 answers

NServiceBus with Data driven approach

I have a console app (C#), say App1 that runs every x hours to grab a list of people, and then filter the list by some criteria, and creates “cleaner” list. I also have another console app, say App2 that runs every x hours to grab the list created…
Tony
  • 3,319
  • 12
  • 56
  • 71
0
votes
1 answer

c# Constructor Action from Interface (NServiceBus)

I have this code, which works well, void Message(IMessage m) { m.MyProperty = "Some Value"; } await context.Publish(Message).ConfigureAwait(false); I have a contract (IMessage) and create a constructor for an action that is to be…
Nick
  • 1
  • 2
0
votes
1 answer

Azure Cloud Services (classic) Microsoft.ServiceBus exception on .NET 4.6/4.7 (not 4.5)

Recently we had to update our code base from .NET 4.5 to .NET 4.6.1 (or higher) so we updated to 4.7.1. Our web site, and one of the services running on the Cloud Services are running successfully (after we found out how to install .NET 4.7 on the…
0
votes
0 answers

NServiceBus XML deserialization throwing: Multiple Root Elements

We have two NServiceBus endpoints on different version, both with XML serialization. When the older one tries to send messages to the newer one, for example:
Richiban
  • 5,569
  • 3
  • 30
  • 42
0
votes
1 answer

how to use .net view in queue explorer

Our company uses Queue Explorer 4.0 pro by cogin and I've been searching all over their website and the only thing I can find on using their .net view is this little blurp about viewing a message being parsed with a .net assembly: blog post so for…
Robert Snyder
  • 2,399
  • 4
  • 33
  • 65