Skip to content

Instantly share code, notes, and snippets.

public static class ServiceBusMessageExtensions
{
public const string RetryCountIdentifier = "RetryAttempt";
public static bool ShouldRetry(this Message message, int maxRetryCount)
{
int resubmitCount = message.GetRetryAttempt();
return resubmitCount < maxRetryCount;
}
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Running;
namespace MyBenchmarks
{
public class MemoriaBenchmarkDemo
{
private readonly List<Boleto> Boletos;
public MemoriaBenchmarkDemo()