Closed ulmermark closed 5 years ago
I believe you might be missing Message context in this case. following code is similar to what we have in our Retry strategy of .SubscribeAsync()
method of IBusClient
client.SubSubscribeAsync<T, RetryMessageContext> (
async (msg, context) =>
{
// Handle stuff here and return Retry.In if things go wrong
},
ctx => ctx.UseMessageContext(c => new RetryMessageContext {
GlobalRequestId = Guid.NewGuid(),
RetryInfo = c.GetRetryInformation() }));
RetryMessageContext
- is simple class that implements IMessageContext
I am trying to use the retry later functionality and DO NOT ever see the message being retried at a later point in time.
Currently using ASPNETCORE 2.0.3
I have added
<PackageReference Include="RawRabbit.Enrichers.RetryLater" Version="2.0.0-rc5" />
to the csproj fileThe IBusClient is injected into the IOC container using the following
I publish the message and the message handler run as expected but when the exception is thrown ( random divide by 0), I do not see the message ever being "reprocessed"
Is there enything else that must be done to get the "Retry" enricher to work?