Questions tagged [nservicebus-sagas]

Out of the box support for long running processes in NServiceBus

NServiceBus Sagas is a mechanism for allowing the modelling and runtime execution of long running business processes.

64 questions
1
vote
1 answer

NServiceBus : Cancelling a scheduled task

I created started a Scheduled task with Schedule.Every(TimeSpan.FromMinutes(1)).Action("TaskName",TaskMethod); Now if my saga's Handle() gets invoked by an incoming message which does MarkAsComplete(), the scheduled task that I created does not get…
user3344591
  • 567
  • 5
  • 21
1
vote
1 answer

Existing saga instances after applying the [Unique] attribute to IContainSagaData property

I have a bunch of existing sagas in various states of a long running process. Recently we decided to make one of the properties on our IContainSagaData implementation unique by using the Saga.UniqueAttribute (about which more here…
tom redfern
  • 30,562
  • 14
  • 91
  • 126
0
votes
0 answers

Map a saga with a list in the sagadata in nservicebus

I have a codebase where we need to send out a lot of messages and when they al complete we need to do some stuff. We use nservicebus 7.X and I wanted to use a saga for this. The problem is that the message i have to send out and get are not made by…
joey
  • 469
  • 1
  • 6
  • 22
0
votes
0 answers

Use ISagaFinder with IAmStartedByMessages in NServiceBus 8

I have updated NSB from 7.7.6 to 8.0.3. In the code I have a TradeSagaFinder for all saga types. The problem that I am facing is that IAmStartedByMessages expect an implementation of ConfigureHowToFindSaga. The code that makes…
Martin Andersen
  • 2,460
  • 2
  • 38
  • 66
0
votes
1 answer

NSB ScriptBuilderTask cannot resolve assembly of own nuget package

We have a microservice architecture and share some code between our services using a nuget package called "HC.Framework". When i try to build a solution that is using this nuget package (that has all the configs for NSB and stuff) i get the…
DjKillerMemeStar
  • 425
  • 5
  • 18
0
votes
0 answers

How to pass data from Component to HOC Component

I want to pass the contextHOC constant to the HOC component but I got a contextHOC is not defined error message so How to pass data named contextHOC from Component named MileageExpenseFormikSteps to HOC Component withHOC here is the HOC component …
0
votes
1 answer

NServiceBus pattern for working with events from common shared services

We have a situation where several of our services are shared across our system. For example one that tracks stock movements. Whenever the stock level of an article changes an event is raised. The problem we run in to is that while sometimes another…
Robba
  • 7,684
  • 12
  • 48
  • 76
0
votes
1 answer

How to improve the performance of my NServiceBus Saga under load

I have a very simple Saga built with NSB7 using SQL Transport and NHibernate persistence. The Saga listens on a queue and for each message received runs through 4 handlers. These are called in a sequential order, with 2 handlers run in parallel and…
0
votes
0 answers

NServiceBus - Could not load file or assembly '' or one of its dependencies

I am working with an .Net Web App that consumes messages from a NServiceBus (v4.7.0) queue. I am getting the following exception: 2019-02-20 15:35:13,624 [28] ERROR NServiceBus.Unicast.Transport.TransportReceiver [(null)] - [(null)] - Failed to…
Bonomi
  • 2,541
  • 5
  • 39
  • 51
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
1 answer

How do i wireup NServiceBus' SqlSaga in a test scenario?

https://docs.particular.net/nservicebus/testing/ has a very neat example of how to test a simple Saga. Unfortunately it does not explain, how to do the same with a SqlSaga - ie. a Saga with persistence of state to a database. Given this saga: public…
Carsten Gehling
  • 1,218
  • 1
  • 13
  • 31
0
votes
1 answer

nservicebus calling a Saga from within another Saga

I'm new to NServiceBus and trying to find the best way to model a scenario which uses compensating transactions. For example, say I have a typical BookHotel scenario: In the happy case, the messaging flow would proceed as follows:…
Michael Kang
  • 52,003
  • 16
  • 103
  • 135
0
votes
1 answer

NServiceBus - How to make sure SagaData is in sync between the Worker Servers?

In NServiceBus 4.6.5 messages go to the Worker servers using the Round-Robin algorithm. I have some data in the Sagas to detect business messages out of sync. That data is stored into an Oracle Database. How to make sure all servers share the same…
Miguel Domingos
  • 345
  • 1
  • 3
  • 17
0
votes
1 answer

Is it possible to have conditional flow in the NServiceBus Saga?

I am new to NServiceBus & its Saga... is it possible to implement conditional flow in the sagas? saga: s->a->b->e At 'a', i should be able make a choice whether to go b or new state c. From 'c' again i should reach e
user441380
  • 211
  • 1
  • 2
  • 5
0
votes
1 answer

Unable to host an NServiceBus Saga from another Service with SQL Persistence

I am attempting to host a Saga from one project in another project using NServiceBus 6 with SqlPersistence and SqlDialect.MsSqlServer. In most examples I have found, the Saga is contained in the same assembly as the hosting app, and perhaps this is…
wolfyuk
  • 746
  • 1
  • 8
  • 26