Questions tagged [automatonymous]

Automatonymous is a free, open-source state machine library for .NET.

Automatonymous is a free, open-source state machine library for the Microsoft .NET framework. It can be used standalone, or with MassTransit for building event-driven state machines.

It is hosted on GitHub and is available for installation using NuGet.

The documentation can be found on the MassTransit Web Site.

75 questions
1
vote
1 answer

Azure Container Instance apparently keeps running after Stop or Delete

We have a microservice based app that uses Azure ServiceBus. We deploy one of the services (a saga manager) as a .Net Core console app in a docker container (Linux). We use docker-compose and a group of 2 containers (including the console app) is…
1
vote
0 answers

MassTransit saga azure service bus receive endpoint setup?

I am trying to configure MassTransit to work with Automatonymous State Machine using the Azure Service Bus and i cannot see any working examples on how to do this. We previously was using RabbitMQ which we configured using the following code. I've…
Johnny
  • 89
  • 1
  • 7
1
vote
1 answer

Using saga event to react to a a message published in a consumer

I'm putting together a proof of concept using Mass Transit with RabbitMq and Automatonymous in an asp.net core 2.1 application. I'm using EntityFramework core with Postgres for persistence. What I'm trying to do is kick off a saga when a request is…
TheMethod
  • 2,893
  • 9
  • 41
  • 72
1
vote
2 answers

Getting ConsumeContext not available when using MassTransit and Automatonymous Publish after previously using RaiseEvent

If we set up a Saga and immediately Publish(context => ...) then a message successfully hits the bus. If however, we have something like Initially( When(SomeCommand) .Then(context => { context.Instance.SomeField = 5 }) …
Daniel
  • 452
  • 3
  • 12
1
vote
1 answer

MassTransit Middleware: OnMissingInstance equivalent for Saga without Automatonymous

I'm attempting to hand crank a Saga without using an Automatonymous State Machine (which I started using but found it difficult to correctly unit test) by following a similar pattern to the way that Sagas are implemented in NServiceBus. However I'm…
Jamie Peacock
  • 372
  • 4
  • 15
1
vote
2 answers

How to test Automatonymous state machines?

I'm trying to write tests for an Automatonymous state machine, but I'm having a fair bit of trouble getting it right, and I've found very little documentation. Here's what I have at the moment for one test: [TestFixture] public class…
Remi Despres-Smyth
  • 4,173
  • 3
  • 36
  • 46
1
vote
0 answers

Masstransit Saga correlate by Natural Key doesn't work

I would like to use unique natural key instead of build in Guid CorrelationId in Masstransit Sagas. However it seems not really work. If I send twice Initial event with same key value, two Sagas created in repository - expected is single…
Andris
  • 1,262
  • 1
  • 15
  • 24
1
vote
2 answers

MassTransit Saga State to Instance State Mapping

I'm new to MassTransit, and I can't seem to figure out how it maps the States that I define on a saga (MassTransitStateMachine) to the "State" property on the related SagaStateMachineInstance class. For example, if I have a state machine class with…
LandonC
  • 889
  • 1
  • 16
  • 28
1
vote
2 answers

need an example for Entity Framework when registering saga repositories with autofac

The masstransit documentation has an example for NHiberbate, does anyone have the same example, but using entity framework (SagaDbContextFactory,SagaDbContext) instead of NHibernate // do not forget registering saga repositories (example for…
RiaanDHLR
  • 11
  • 1
1
vote
1 answer

Automatonyous state machine, generate graph from code

I'm using Automatonyous state machines in my c# project. I'm wondering if there is a way to automatic obtain the graph of coded state machines.
0
votes
1 answer

MassTransit StateMachine Saga - running behind LoadBalncer, How to stop consuming the same published message more than once

In MassTransit Send and RequestClient will be mapped to exchange or queue, That will be handled by LoadBalanced Consumer. But for Publish Message, It will be consumed by all the instances that are running and waiting for the Message. So, In…
Gopi
  • 1,425
  • 2
  • 10
  • 6
0
votes
1 answer

Throw UnhandledEventException if the event is filtered

I've a scenario where a certain filter has to be matched before we can transition into a new state. So i've setup a filter, and registerd OnUnhandledEvent to throw exceptions if the event isn't handled. Unfortunately, it doesn't throw any errors.…
Jamie
  • 93
  • 2
  • 13
0
votes
1 answer

How to setup "Enable Express" of ServiceBus in MassTransit

Is there any way to control "Enable express" option of Azure ServiceBus in MassTransit? I've found other options like "Enable Partitioning", "Enable Batched Operations" but not this one. According to google search results it seems like it was…
Proggear
  • 662
  • 6
  • 10
0
votes
1 answer

How to avoid persisting a temporary conditional variable when MassTransit Automatonymous is using Entity Framework

I am using Mass Transit's FSM Automatonymous package to persist the saga state into a database via Entity Framework integration, so I have a saga class mapped to a DB table containing correlation ID, saga state, a couple of timestamps. That's all…
scipilot
  • 6,681
  • 1
  • 46
  • 65
0
votes
1 answer

How to pass properties via CompositeEvent

I've got some events in state machine public Event? FirstCompletedEvent { get; set; } public record FirstCompletedEvent(Guid PaymentKey, string PaymentDetails) : IQueueMessage; public Event?…
Proggear
  • 662
  • 6
  • 10