I'm new to use MassTransit
. to use the mediator.
services.AddMassTransit(options =>
{
options.AddConsumer<SubmitOrderConsumer>();
options.AddMediator(); // this function is not found
options.AddRequestClient<ISubmitOrder>();
});
Which package has the AddMediator()
extension method?
I'm trying with Masstransit v7.x and cannot find AddMediator()
method.
Thank you @Peter Csala,
it's updated now in Masstransit v7.x.
Container configuration has changed, and now uses the
AddMediator
method (instead ofAddMassTransit
. According to. MassTransit Upgrade