public RabbitMqCommandBus(IMessagePublisher messagePublisher, CommandBusRabbitMqOptions options) { this.channel = options.Channel; this.options = options; options.MessagePublisher = messagePublisher; }
public static void UseRabbitMqCommandBus(this ShriekOptionBuilder builder, Action <RabbitMqOptions> optionAction) { var option = new CommandBusRabbitMqOptions(); optionAction(option); AddRabbitMq(builder, option); builder.Services.AddTransient <ICommandBus, RabbitMqCommandBus>(); }