Produce
is not the same as Publish
. You can use Produce
to send messages to a topic in Kafka from a state machine:
Initially(
When(Started)
.Produce(x => x.Init<KafkaMessage>(new {Text = "text"}))
.TransitionTo(Active));
There are unit tests that show how it works, I don't believe it is documented yet. It was added in this commit
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…