Take the community feedback survey now.

How are you configuring EPiServer.Events.MassTransit using RabbitMQ?

Vote:
 

Looking at an upgrade for an on-prem load balanced site and want to use this package:

<PackageReference Include="EPiServer.Events.MassTransit" Version="1.0.0" />

I don't see much on the web around configuring it... I would think it's something like having the below block in Startup. How have you configured it?

services.AddMassTransit(x =>
{
    x.UsingRabbitMq((context, cfg) =>
    {
        cfg.Host("10.187.222.80", "/", h => {
            h.Username("some-username");
            h.Password(this.configuration.GetValue<string>("RabbitMq:Password"));
        });

        cfg.ConfigureEndpoints(context);
    });
});
#340430
Sep 16, 2025 13:35
Vote:
 

We usually just call the service and configure it in appsettings

services.AddMassTransitEventProvider(null, x => x.AddRabbitMqTransport());

Adding the connectionstring to appsettings

"ConnectionStrings": {
    "EPiServerDB": "...",
    "OptimizelyMassTransitEvents": "amqp://guest:guest@localhost:5672"
}
#340489
Sep 22, 2025 11:19
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.