From f8683b7606295ae42a40803fe9a7efe6871772a6 Mon Sep 17 00:00:00 2001 From: Dylan Brasseur Date: Tue, 17 Oct 2023 15:17:19 +0200 Subject: [PATCH] Fix post merge issues --- ...rmoniK.DevelopmentKit.Client.Common.csproj | 1 + Client/src/Common/Properties.cs | 16 ++++++------ .../ArmoniK.DevelopmentKit.Common.csproj | 1 + Common/src/Common/RetryAction.cs | 26 +++++++++---------- 4 files changed, 22 insertions(+), 22 deletions(-) diff --git a/Client/src/Common/ArmoniK.DevelopmentKit.Client.Common.csproj b/Client/src/Common/ArmoniK.DevelopmentKit.Client.Common.csproj index ca1477d2..a779a4bc 100644 --- a/Client/src/Common/ArmoniK.DevelopmentKit.Client.Common.csproj +++ b/Client/src/Common/ArmoniK.DevelopmentKit.Client.Common.csproj @@ -9,6 +9,7 @@ + diff --git a/Client/src/Common/Properties.cs b/Client/src/Common/Properties.cs index 5c8604e9..727eb2a5 100644 --- a/Client/src/Common/Properties.cs +++ b/Client/src/Common/Properties.cs @@ -127,14 +127,14 @@ public Properties(TaskOptions options, /// public Properties(IConfiguration configuration, TaskOptions options, - string? connectionAddress = null, - int connectionPort = 0, - string? protocol = null, - string? clientCertFilePem = null, - string? clientKeyFilePem = null, - string? clientP12 = null, - string? caCertPem = null, - bool? sslValidation = null, + string? connectionAddress = null, + int connectionPort = 0, + string? protocol = null, + string? clientCertFilePem = null, + string? clientKeyFilePem = null, + string? clientP12 = null, + string? caCertPem = null, + bool? sslValidation = null, TimeSpan retryInitialBackoff = new(), double retryBackoffMultiplier = 0, TimeSpan retryMaxBackoff = new()) diff --git a/Common/src/Common/ArmoniK.DevelopmentKit.Common.csproj b/Common/src/Common/ArmoniK.DevelopmentKit.Common.csproj index e731ce79..f344e851 100644 --- a/Common/src/Common/ArmoniK.DevelopmentKit.Common.csproj +++ b/Common/src/Common/ArmoniK.DevelopmentKit.Common.csproj @@ -9,6 +9,7 @@ + diff --git a/Common/src/Common/RetryAction.cs b/Common/src/Common/RetryAction.cs index a2479cdb..26cc0bb6 100644 --- a/Common/src/Common/RetryAction.cs +++ b/Common/src/Common/RetryAction.cs @@ -18,8 +18,6 @@ using System.Linq; using System.Threading; -using JetBrains.Annotations; - using Microsoft.Extensions.Logging; namespace ArmoniK.DevelopmentKit.Common; @@ -92,12 +90,12 @@ public static void WhileException(int retries, /// /// Logger to log retried exception /// When one of the retries succeeds, return the value the operation returned. If not, an exception is thrown. - public static void WhileException(int retries, - int delayMs, - Action operation, - bool allowDerivedExceptions = false, - [CanBeNull] ILogger logger = null, - params Type[] exceptionType) + public static void WhileException(int retries, + int delayMs, + Action operation, + bool allowDerivedExceptions = false, + ILogger? logger = null, + params Type[] exceptionType) { // Do all but one retries in the loop for (var retry = 1; retry < retries; retry++) @@ -178,12 +176,12 @@ public static T WhileException(int retries, /// /// Logger to log retried exception /// When one of the retries succeeds, return the value the operation returned. If not, an exception is thrown. - public static T WhileException(int retries, - int delayMs, - Func operation, - bool allowDerivedExceptions = false, - [CanBeNull] ILogger logger = null, - params Type[] exceptionType) + public static T WhileException(int retries, + int delayMs, + Func operation, + bool allowDerivedExceptions = false, + ILogger? logger = null, + params Type[] exceptionType) { // Do all but one retries in the loop for (var retry = 1; retry < retries; retry++)