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 inject dependency into NServiceBus pipeline behavior?

I've been following the NServiceBus samples, specifically for how to use an entity framework (core) DbContext integrated with Sql Persistence so that I can save dbcontext state changes along with the outbox messages. This is the sample:…
Mark
  • 1,059
  • 13
  • 25
0
votes
1 answer

unit testing the commandhandler depended on Interface

I am not much comfortable to write unit test. So sorry for asking basic questions. Here is commandhandler ICalculateAge CalculateAge { get; set; } public UpdateAgeCommandHandler(ICalculateAge calculateAge) { this.CalculateAge =…
James
  • 1,827
  • 5
  • 39
  • 69
0
votes
1 answer

In Octopus, how to do variable substitution on an NServiceBus instance-mapping.xml

When using NServiceBus in a C# project, a file called instance-mapping.xml is used to specify which machine each queue is hosted on. Like this:
Carsten Gehling
  • 1,218
  • 1
  • 13
  • 31
0
votes
2 answers

How can I get traces of Nservicebus using Jaeger?

I have gone through Jaeger Documentation. They have specified that how will Jaeger will work the HTTP request kind of scenario but if I want to get traces of Nservicebus's to publish/subscribe method then How will I get using Jaeger? Is it possible?…
0
votes
3 answers

NServiceBus Generic Host and Common.Logging

Folks, I got NServiceBus logging working correctly following the directions found here: http://docs.particular.net/nservicebus/logging/ However, I am using Common.Logging. If I use the LogManager for Common.Logging, it doesn't log. If I use the…
CubanX
  • 5,176
  • 2
  • 29
  • 44
0
votes
1 answer

Using NServiceBus with SqlTransport - Can't verify message stored in SQL

I'm walking through the sample on NServiceBus using the SQLTransport where I apparently don't understand the concepts of transport correctly because I'm not seeing the expected behavior following their sample application which can be found here:…
Geekn
  • 2,650
  • 5
  • 40
  • 80
0
votes
2 answers

nservicebus a client sends command to msmq and azure service queue

I would like to know how, if possible, a client app (winform) sends NServicebus command A to be processed by a MSMQ queue and command B to be processed by a Azure storage queue or Azure service bus? If not, how may I get around of it?
hshen
  • 468
  • 1
  • 4
  • 13
0
votes
1 answer

NServiceBus Sql Server Transport only triggers on one application

I have two console applications. At start, both configure an endpoint like this: public static async Task CreateEndpoint() { var endpointConfiguration = new EndpointConfiguration("ep"); …
user2877820
  • 287
  • 4
  • 19
0
votes
1 answer

NServiceBus Version 7.1.x configrution in asp.net core 3.0 best way

I am using NServiceBus as middelware for an asp.net core 3.0 API. I already configured the service in my API using NServiceBus version 7.2 because the documentation for that on the website of particular is amazing. Saddly I have a probleem because i…
0
votes
1 answer

Shared service provider NServiceBus and ASPNET Core

I'm creating a way to publish integration events via NServiceBus that are published from within an operation executed in a handler. The path I've chosen is bridge the IIntegrationEventProvider with IEventCollectionPublisher to get the published…
joacar
  • 891
  • 11
  • 28
0
votes
1 answer

Making changes to Nsb Message and SagaData classes

Both our Message and our SagaData classes contain properties that are defined in our solutions central Model project. We're now in the process of refactoring our solution such that we'll have a specific project where properties of our NServiceBus…
0
votes
0 answers

How come sometimes my messages on the NServicebus queue get an infinite DeliveryCount?

For some of my NServiceBus integrations, I see that my messages "get stuck". My queue receives messages from one of my saga's, and normally everything works fine. The message comes in, its being processed, and then removed from the queue. However,…
0
votes
1 answer

NServiceBus.LicenseManager No valid license could be found

Recently I've started to learn NServiceBus, But when I try to run a simple console app (This for instance) I will face this message: 2019-09-18 11:20:46.386 INFO NServiceBus.LicenseManager No valid license could be found. Falling back to trial…
Chainsw
  • 37
  • 7
0
votes
1 answer

Is there an equivalent to AutoRenewTimeout(TimeSpan) for ASB transport?

We are using the (non-legacy) Azure Service Bus transport. Is there an equivalent to AutoRenewTimeout(TimeSpan) that we can use? And if not (as the docs suggest) how does the transport handle long-running processes?
Carl
  • 1,782
  • 17
  • 24
0
votes
1 answer

Can NServiceBus TimeToBeReceived be set on a per-message basis?

I've seen in the documentation that TimeToBeReceived can be set on a message class or on the endpoint itself. I have a message class that should use TimeToBeReceived, but I'd like to alter the specific length of time for each individual message. Is…
mdk
  • 117
  • 1
  • 11