mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 16:16:31 +00:00
fixed console Log
fix same files problem in python different libs correct command logging in command handler
This commit is contained in:
@@ -4,8 +4,7 @@ public static class ResilienceExt
|
||||
{
|
||||
public static void WithRetry(this Action operation, int retryCount = 3, int delayMs = 150) =>
|
||||
Policy.Handle<Exception>()
|
||||
.WaitAndRetry(retryCount, num => TimeSpan.FromMilliseconds(num * delayMs),
|
||||
(exception, timeSpan) => Console.WriteLine($"Exception: {exception}, TimeSpan: {timeSpan}"))
|
||||
.WaitAndRetry(retryCount, num => TimeSpan.FromMilliseconds(num * delayMs))
|
||||
.Execute(operation);
|
||||
|
||||
public static TResult WithRetry<TResult>(this Func<TResult> operation, int retryCount = 3, int delayMs = 150) =>
|
||||
|
||||
Reference in New Issue
Block a user