0

I started to use library RawRabbit, everything was great until i wanted to configure somekind of retry mechanism.

In documation it looks simple: We configure client:

var client = BusClientFactory.CreateDefault<AdvancedMessageContext>();

then just use context for that.

client.SubscribeAsync<BasicMessage>(async (message, context) =>
{
    if (CanNotBeProcessed())
    {
        context.RetryLater(TimeSpan.FromMinutes(5));
        return;
    }
    // five minutes later we're here.
});

In the newest version with .net core 7.0 context is null so its not useable.

Is there anything neccessary in configuraiton to make it work? Because creating retry system is obscure and it's argument to remove library from solution.

Second thing to ask: whenerev my subscriber throws exception, its published to exchange called:

default_error_exchange

Is there any way to change that?

kenik
  • 142
  • 3
  • 13
  • I reproduced this code locally and it worked perfectly, i used RawRabbit and RawRabbit.vNext 1.10.4 with net7.0. Could you add more information about nugets packages and usings? – matmahnke Mar 12 '23 at 02:35

0 Answers0