![]() ![]() Can Glass Mapper Sc create instance of mapping interface?.How to configure MassTransit Saga in Asp.Net Core application.The state of the current PowerShell instance is not valid for this operation in C#.When is it ok to change object state (for instance initialization) on property getter access?.How to seed initial state to a saga in MassTransit test harness?.How to Schedule in the Initial state of MassTransit saga.MassTransit Testing Saga StateMachine - The state machine was not properly configured.You should also configure the state property of the state machine state object in the state machine constructor: InstanceState(x => x.CurrentState) Īlong the execution of this saga, this property will get values Executing, Completed or Failed as you have defined the state properties. So your saga state will look like: public class MySagaState : SagaStateMachineInstance I would really suggest using string, since it is easier to map and there is no confusion. If you use int - it is the hardest to understand by looking at the value, since it has come convention like zero is no state, one is the initial state, 2 is the final state and 3 onwards represent all other states. If you use string (all MassTransit examples suggest this) - it is obvious that the property will contain the state name, representing the state machine property name. The first case, if you use database persistence, the Name property of the State object will be stored in the database. It can either be of a complex type State or primitive type string or int. It changes whenever the state machine gets to another state. The State property indicates the current state machine state.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |