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

Sample of NServiceBus Pub/Sub over Net TCP WCF?

Is this possible? trying to look for examples that show a message being published by the server and having multiple clients subscribed to those messages
Jon Erickson
  • 112,242
  • 44
  • 136
  • 174
0
votes
1 answer

How to correlate two AppInsights resources that communicate through NServiceBus?

Currently, I have dozens of .NET services hosted on various machines that show up as Resources on my AppInsights Application Map, which also shows their dependencies with respect to each other, based on the HTTP requests they make. However, the…
0
votes
2 answers

Why does AzureServiceBusTransport keep creating a sql filter for only 1 event? (NServiceBus transport)

NServiceBus version: 7.5.0 .NET Version: 5 I have a .NET API where I have a number of handlers and an NServiceBus saga. This now includes commands and events. The commands aren't a problem and they work fine across multiple projects and handlers,…
Serberuss
  • 2,247
  • 4
  • 22
  • 40
0
votes
1 answer

Send Message when NServiceBus Recoverability fails using Notifications

How can I send a message (or publish an event) when a message runs out of retries and moves to the error queue? When a request comes into my system, I create a Saga to track it. The Saga sends commands to Handlers to do async work. If the handler…
Andrew
  • 1,839
  • 14
  • 25
0
votes
1 answer

nServiceBus and IsTransactional(false)

I'm new to nServiceBus. If the bus is configured with IsTransactional(true) and the handler has a lot of db interaction, the asp.net mvc application hangs up. Here -…
denis_n
  • 783
  • 8
  • 29
0
votes
1 answer

NServiceBus 5 to 7 upgrade - No Destination specified for message

I cannot seem to get NServiceBus working again after upgrading from NServiceBus 5 to 7. I've uploaded my test solution to github. The Error I'm getting right now is located in Program.cs on line 95. One level down it's on NServiceBusHelper.cs on…
NickGames
  • 312
  • 1
  • 18
0
votes
1 answer

Publishing message using NServiceBus using Azure Function Cosmos DB Changefeed trigger

I have an Azure function and I'm trying to send a message with NServiceBus using Azure ServiceBus transport. I have successfully got it working following this doc when the endpoint name does not have a “.” or period in the name. E.g.:…
Ankit Vijay
  • 3,752
  • 4
  • 30
  • 53
0
votes
2 answers

Using NServiceBus Outbox with CosmoDB persistance in ASP.NET Core Application

I have an ASP.NET core application built with the Domain-Driven-Design concept implemented through MediatR. My application saves data to Azure Cosmos DB. I need to raise integration events from my ASP.NET Core application. I'm looking to use…
0
votes
1 answer

ServiceuBusTrigger read Service Bus connection string from KeyVault

I have a simple ServiceBusTrigger which works fine when the connection string is inside my localsettings.json However, I need to load this from the KeyVault This approach is easy to do with Web Storage Has anyone managed to do this with…
Paul
  • 2,773
  • 7
  • 41
  • 96
0
votes
1 answer

NServiceBus with Custom NHibernate ConnectionProvider

Problem: NSB won't use our Custom NHB ConnectionProvider. Im configuring NSB in code with the following setup (log4net is the only thing in the app.config file): …
Christian Mikkelsen
  • 1,661
  • 2
  • 19
  • 44
0
votes
1 answer

Find Retry Count in Command Handler and Call External service before moving to ErrorQueue in NServiceBus

I am using NServiceBus with Timeout retry mechanism. I would like to call a service to process message before moving to Error Queue.( in last retry) Is there any way to know the handler is calling last retry sothat based on count I can call service…
0
votes
1 answer

NServiceBus: How does saga concurrency with SQL persister work?

I'm using NServiceBus with SQL Persistance and MSSQL Server. I want to be sure that I don't get invalid data in my database in high concurrent scenarios. From the docs I know that the SQL persister uses pessimistic concurrency since version…
Stimmler
  • 322
  • 4
  • 15
0
votes
1 answer

NServiceBus: Access to recoverability in feature

Using NServiceBus v7.4.6 plus .NET Core 3.1 and getting the exception The given key NServiceBus.RecoverabilitySettings was not present in the dictionary. with the code below when trying to get RecoverabilitySettings in the feature. What could be…
Petr Felzmann
  • 1,271
  • 4
  • 19
  • 39
0
votes
1 answer

should the NServicebus CastleWindsorBuilder register the bus into the container

I have the following code: public class MessageEndpoint : IConfigureThisEndpoint, AsA_Server, IWantCustomInitialization { private IWindsorContainer _container; public void Init() { _container = new WindsorContainer(); …
user156888
0
votes
1 answer

Scripting RabbitMQ bindings

I want to set up a bunch of rabbitMQ exchanges and queues together with their bindings trough a Octopus deploy step. We're using NServiceBus and we don't want to give the application too much permission hence it can't set up the stuff…
SwedenDrew
  • 61
  • 1
  • 8