Closed satyajit-behera closed 4 years ago
What would you like to use it for?
To update configuration other than when I am doing the RegisterRebus. Thanks.
When you RegisterRebus
, the variable passed to you (configure
in the snipped below) IS the RebusConfigurer
:
var builder = new ContainerBuilder();
builder.RegisterRebus(
configure => configure //< this is the RebusConfigurer :)
.Logging(l => l.Serilog())
.Transport(t => t.UseRabbitMq(..., "autofac-test"))
.Options(o => ...)
);
using (var container = builder.Build())
{
// bus is running now
}
Thanks. This approach looks good.
While using Autofac container, is it possible to get the rebusConfigurer instance as we get with BuiltInActivator?