public async Task MessagesDeliveredAsync(IList<IBatchContainer> messages)
{
// Finding the highest offset
if (messages.Any())
{
var highestOffset = messages.Max(b => (b.SequenceToken as EventSequenceToken).SequenceNumber);
// We increment the highest offest since the offest commit represents the next message to be handled.
await CommitOffset(highestOffset + 1);
}
}
}