MassTransit / Automatonymous

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

CompositeEventActivity<TInstance> and GraphStateMachineVisitor<TInstance> #58

Closed AlexanderRadko closed 5 years ago

AlexanderRadko commented 5 years ago

GraphStateMachineVisitor has code that is impossible to execute.

inside method Visit(Activity activity, Action next) system is trying to cast activity to CompositeEventActivity: compositeActivity = activity as CompositeEventActivity;

but in case of registering composite event system creates FactoryActivity with CompositeEventActivity so cast is impossible and method GraphStateMachineVisitor.InspectCompositeEventActivity never executes