MassTransit / Automatonymous

A state machine library for .Net - 100% code - No doodleware
Apache License 2.0
736 stars 116 forks source link

How to handle multiple requests of the same type? #43

Closed MrZoidberg closed 4 years ago

MrZoidberg commented 6 years ago

I'd like to have an ability to store multiple requests with the same signature in my MassTransitStateMachine. e.g. something like this:

class Workflow : MassTransitStateMachine<Work> 
{
    public List<Request<Work, ProcessRenderTask, ProcessRenderTaskFinished>> RenderRequest { get; private set; }
}

is it possible? or maybe some workaround to implement such behavior?

phatboyg commented 6 years ago

This isn't supported out of the box, it's a fan-out case, where I'd likely use a parent state machine with multiple parallel separate state machine instances.