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

How to apply scope to logs in NServiceBus behaviour middleware

In the following example, I apply scope on to my ILogger in NServiceBus Behaviour middleware. Unfortunately this scope doesn't persist with the subsequent next() calls. How can I get scope to persist for messages in IHandleMessages handlers? public…
MarzSocks
  • 4,229
  • 3
  • 22
  • 35
0
votes
0 answers

Full Event Sourcing in preventing loss of domain event published to event bus subscribed by other microservicess

I across the article below, and want to find out exactly how full event sourcing pattern can prevent the issue of losing event when publishing domain event to event bus. For this scenario, using the full Event Sourcing (ES) pattern is one of the…
Pingpong
  • 7,681
  • 21
  • 83
  • 209
0
votes
1 answer

NServiceBus on Azure Service Bus: unable to get subscribing endpoint to start

I'm trying to get a pair of NSB endpoint (an event publisher and an event subscriber) running on top of Azure Service Bus. I have created the service bus and the topic through the Azure portal, and my publisher is able to publish events to the topic…
Richiban
  • 5,569
  • 3
  • 30
  • 42
0
votes
3 answers

So, maybe this is a case where I should go for a SOA?

Scenario: I have a CRM system, and my app. When a new order is created in the CRM system, myApp should do some stuff (create a project room for the order), and write something (project room url) back to the CRM system. So I could easily implement…
Larsi
  • 4,654
  • 7
  • 46
  • 75
0
votes
3 answers

Accessing message headers outside handler functions with nservicebus

I am using nservicebus 7 in my asp.net core 2.1 application. I wanted to access my custom message headers outside handler functions(specifically in a repository class). Saw this answer, but somehow both options are not working for me. Whenever I…
Sajan
  • 135
  • 15
0
votes
1 answer

To get messages with NServiceBus do you have to have a message queue on the subscribing machine?

I am wondering if there is a way to setup NServiceBus so that the machine actually getting the message from a publisher does not have the InputQueue on it. Also, I would like to publish to a general queue (though this can be accomplished with a web…
Vaccano
  • 78,325
  • 149
  • 468
  • 850
0
votes
2 answers

NServiceBus In MVC Core - Sending with Dependency Injection

I am currently attempting to send messages to an Azure ServiceBus queue via NServiceBus 7.1.9. We are using dotNet Core 2.0 NServiceBus 7.1.9 NServiceBus.MSDependencyInjection 0.1.4 NServiceBus.Persistence.AzureStorage…
Trevor Watson
  • 415
  • 1
  • 8
  • 20
0
votes
1 answer

NServiceBus Pub/Sub example and the "Distributor"

I finished going through the example of Pub/Sub for NServiceBus. I am now trying to wrap my head around the "Distributor" concept of NServiceBus. At first I was very confused because I thought there was some part of the example that mapped to a…
Vaccano
  • 78,325
  • 149
  • 468
  • 850
0
votes
1 answer

It is ok to have long running processes in NServiceBus with SQL Server transport?

I have long running process running in the message handler, I noticed that I can't read from the table while the task is in process. Is this ok? Or is there a better way to handle long running processes? My transport is SQL Server. Thanks in…
0
votes
1 answer

NServiceBus property not injecting

I'm running NServiceBus 2.0 and trying to create a service to receive forwarded messages and drop them in a (RavenDB) database. I admit I don't have a firm grasp on how NServiceBus works with IoC containers (nor have I used Spring before), so I may…
Dave Nichol
  • 181
  • 3
  • 8
0
votes
1 answer

Can multiple NServiceBus publishers share the same DBSubscriptionStorage?

Looking at the Publish-Subscribe API and Configuration page, it would seem that the database schema used by NServiceBus to track subscriptions only tracks the Subscriber Endpoint and Message Type. I had hoped that maybe I could change the name of…
Aaronaught
  • 120,909
  • 25
  • 266
  • 342
0
votes
1 answer

How do I avoid version conflicts using NServiceBus with Castle Windsor WcfFacility?

It appears the NServiceBus is built against Castle Windsor 2.0.0.0, whilst the WcfFacility needs to be built against 2.5.2. Is there any way I can run both NServiceBus and the WcfFacility in the same project? We're developing a network service that…
Dylan Beattie
  • 53,688
  • 35
  • 128
  • 197
0
votes
1 answer

Nsb: Custom behavior after every handler

We want to log every occurrence of a handler running to completion and we're wondering what's the cleanest way to do it. More specifically, when a Handler completes, we want to write some basic information like the type of the message that was…
0
votes
1 answer

Set autodelete and exclusive properties in NServiceBus with RabbitMQ

does anyone know how to set autodelete and exclusive in NServiceBus for RabbitMq queues? I tried the following but it's not working: protected override void OnConfigurationStarting(EndpointConfiguration configuration, ContainerBuilder…
MeTitus
  • 3,390
  • 2
  • 25
  • 49
0
votes
1 answer

NServiceBus IP Address

I am new to Nservicebus and have recently started working in it. I am stuck on a point and need input from you guys. I have 2 asp.net core web api projects and I want to use NServicebus to send messages between both of them in some scenarios. What I…
Imran Balouch
  • 2,170
  • 1
  • 18
  • 37