You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And this works as expected. however, i want to use the ability to pass payload as generics because i might have many events with their own payload types, so I wanted to use it as following
Then as well RaiseEvent throws the same error. So when
I use generic payload i receive this error
If I use Event which is coming from nextEvents FirstOrDefault then I receive same error. However, call to RaiseEvent works fine If the other override of RaiseEvent as following is used.
await machine.RaiseEvent(instance, allowedEvent, CancellationToken.None); //assuming there is no context arguments required for this event in state machine
Thanks
The text was updated successfully, but these errors were encountered:
Hi, I know that this repo is not maintained anymore but nevertheless I have a use case where I use Automatonymous without MT.
I have a sample code here that works but if I use a payload that is coming using generics, i get an exception
Automatonymous.AutomatonymousException: This activity requires a body with the event, but no body was specified.
The working code is from a unit test in the repo.
then i use this as following
And this works as expected. however, i want to use the ability to pass payload as generics because i might have many events with their own payload types, so I wanted to use it as following
and then call it as in
which results into the above mentioned error ! Is there no way to do this or achieve this somehow or am I missing some configuration ?
Additionally, I also notice that if i do following
Then as well RaiseEvent throws the same error. So when
await machine.RaiseEvent(instance, allowedEvent, CancellationToken.None); //assuming there is no context arguments required for this event in state machine
Thanks
The text was updated successfully, but these errors were encountered: