I'm trying to get a grip on ServiceBus architecture and I am using RawRabbit 1.10.4. For this I am following an online course where RawRabbit is used. In the Registration of Command Handlers, the following Extension Method is created, where the Methoc ctx.UseConsumerConfiguration is called.
The Extension method should be in RawRabbit.Pipe namespace, which is not available. What is the nuget package I need to install, to get the extension methods, or has this extension method / namespace been removed in Version 1.10.4?
public static class Extensions
{
public static Task WithCommandHandlerAsync<TCommand>(this IBusClient bus,
ICommandHandler<TCommand> handler)
where TCommand : ICommand
=> bus.SubscribeAsync<TCommand>(msg => handler.HandleAsync(msg),
ctx => ctx.UseConsumerConfiguration(cfg => cfg.FromDelaredQueue(q => q.WithName("XXX"))));
}