MassTransit is a free, open-source distributed application framework for .NET. MassTransit makes it easy to create applications and services that leverage message-based, loosely-coupled asynchronous communication for higher availability, reliability, and scalability.
Please do not open an issue on GitHub, unless you have spotted an actual bug in MassTransit.
Use GitHub Discussions to ask questions, bring up ideas, or other general items. Issues are not the place for questions, and will either be converted to a discussion or closed.
This policy is in place to avoid bugs being drowned out in a pile of sensible suggestions for future
enhancements and calls for help from people who forget to check back if they get it and so on.
In the starbucks sample, I saw a message is published when payment is completed.
The code is like
When(PaymentComplete)
.Then((saga, message) =>
{
Console.WriteLine("Payment Complete for '{0}' got it!", saga.Name);
saga.ServeDrink();
})
.Complete()
private void ServeDrink()
{
Console.WriteLine(string.Format("I've got a {0} ready for {1}!", Drink, Name));
var message = new DrinkReadyMessage
{
CorrelationId = CorrelationId,
Drink = Drink,
Name = Name,
};
Bus.Publish(message);
}
The starbucks sample uses Masstransit 2.9, how can this be realized with MassTransit 3.5?
I'm following along in your class in SF and all NuGet packages restored and build works great. However, I get an error about connecting to RabbitMQ. Do I need to set that up separately? Would be good to have a quick readme on the setup.