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

Use LearningTransport with nservicebus azure trigger functions (NServiceBusTriggerFunction)

Trying to use the example code snippet: builder.UseNServiceBus(ctx => { var endpointConfig = new EndpointConfiguration("ConsoleEndpoint"); endpointConfig.UseTransport(new LearningTransport()); return endpointConfig; }); It's not…
SwissCoder
  • 2,514
  • 4
  • 28
  • 40
0
votes
1 answer

NServiceBus - configuring AzureStorageQueueTransport with Router (requires an explicitly defined serializer but I cannot do such)

I'm trying to setup a Router to route messages from an Azure Storage Queue Transport to a RabbitMQ transport. I'm able to configure the RabbitMQ interface & connect just fine. However, when I try to start the router I get an error from NServiceBus…
Avery Ferrante
  • 132
  • 1
  • 6
0
votes
1 answer

In NServiceBus how can I prevent multiple messages for the same resource being processed concurrently?

We have an NServiceBus endpoint that currently listens for ProductChanged events and communicates a number of these changes to a third party. Due to the volume of events we need to process we have scaled to multiple nodes with multiple logical…
Richiban
  • 5,569
  • 3
  • 30
  • 42
0
votes
0 answers

Setting WebProxy when using NServiceBus + Azure Servicebus

I am currently writing a couple .NET core of applications using NServiceBus with AzureServiceBusTransport, but I cannot find any way of configuring it with a WebProxy. When using Azure Servicebus directly we have the configuration option available…
davide
  • 1
  • 1
0
votes
2 answers

NService bus 'Publish()' base interface not sending concrete child class properties

I am using an interface to send message to a handler using NServicebus. Below is the interface: interface IDeliveryTarget { public DeliveryType DeliveryType { get; } public string DocumentId { get; set; } } Child Classes Email and…
User3250
  • 2,961
  • 5
  • 29
  • 61
0
votes
1 answer

NServiceBus with RabbitMQ Simple event

I want to be able to used NServiceBus to add a message on a queue in RabbitMQ. I dont want to handle it yet so just want to see an item on the queue, my code is as follows, but I get this error when I run it? I have been trying to look at the…
Andrew
  • 2,571
  • 2
  • 31
  • 56
0
votes
2 answers

Writing nservicebus logs in UTC time format instead of the one that's set on the OS

When messages get written into the nsb logs (nsb_yy-mm-dd_X.txt), they are always written in the time zone that's set on the OS (in this case on a Windows 2019 Enterprise box, Americas/New York). Sample Below: 2022-03-25 16:19:26.790 INFO Received…
0
votes
1 answer

NServicebus Saga using Oracle.EntityFrameworkCore

I would like to know if it's possible to use Oracle.EntityFrameworkCore with NServicebus 7.6? I am using hosted .NET 6 service running NSB 7.6. Data access are using Oracle.EntityFrameworkCore From the documentation it looks like you have to use…
Martin Andersen
  • 2,460
  • 2
  • 38
  • 66
0
votes
2 answers

nservicebus SetLoggingLibrary

I cannot get nservicebus to use a named log4net logger. It seems to only use what is defined in the element. This works fine NServiceBus.SetLoggingLibrary.Log4Net(log4net.Config.XmlConfigurator.Configure);
Stig
  • 1,974
  • 2
  • 23
  • 50
0
votes
1 answer

NServiceBus 3.0 DataBus Sample No Destination Found for message type

I am attempting to play around with NServiceBus 3 ( aka github master ) and am having trouble getting some of the Samples to run, namely the DataBus and AzureDataBus projects. For the DataBus Receiver it seems that it is expecting a…
Alistair
  • 1,064
  • 8
  • 17
0
votes
0 answers

Servicebus queue triggered azure function not able to consume messsage sent from .net framework nservicebus client

public async Task Run([ServiceBusTrigger("testqueue",, Connection = "queueConn")]string mySbMsg, ILogger log) { try { /////////// message is not even hitting the function. however it is failing with the below error…
0
votes
1 answer

Copy custom headers from incoming pipeline to outgoin pipeline using behaviors

I tried to copy a custom headers from the incoming pipeline to de outgoin pipeline with the purpose of spread this headers along all services. This has been implemented using the behaviors pipeline. The problem is in the outgoing context the headers…
0
votes
1 answer

Cannot subscribe to events from an ASP.NET Core 6.0 API NServiceBus endpoint

I want to make my API both publish events (outside any incoming message handlers, e.g. from an action method) and subscribe to events. Publishing events works. I used the older versions of Program and Startup to integrate using GenericHost and an…
0lt
  • 283
  • 2
  • 13
0
votes
2 answers

NServiceBus pub/sub and hardcoded publisher location

Is the a way to make a subscriber subcribe on a message type without knowing the publishers (location)? I guess this could be done with a central subscription storage.
Stig
  • 1,974
  • 2
  • 23
  • 50
0
votes
2 answers

NServiceBus UseTransport not working after upgrading to .NET 6

I'm using NserviceBus with the Azure Function project ( NServiceBus.AzureFunctions.InProcess.ServiceBus). Application is using azure service bus as the transport and it is configured in function startup by using the below code var transport =…
rinesh
  • 493
  • 1
  • 8
  • 26