Пример #1
0
 public IMessageRetry(Ws.Core.Extensions.Message.IMessage inner)
 {
     _inner       = inner;
     _retryPolicy = Polly.Policy
                    .Handle <ArgumentOutOfRangeException>()
                    .WaitAndRetryAsync(10, retryAttempt => TimeSpan.FromSeconds(Math.Pow(2, retryAttempt)));
 }
Пример #2
0
 public IMessageSignature(Ws.Core.Extensions.Message.IMessage inner)
 {
     _inner = inner;
 }
Пример #3
0
 public IMessageCopy(Ws.Core.Extensions.Message.IMessage inner, ILogger <Ws.Core.Extensions.Message.IMessage> logger)
 {
     _inner  = inner;
     _logger = logger;
 }