Pull Request 33523 suggestions

Pull Request 33520 suggestions

Injected AppSettings instead of using GetEnvironmentVariable at Services level

When debugging only
app.Services.GetRequiredService<IPCRBService>();

Get ready to use VSCode IDE

Align .editorconfig files
This commit is contained in:
2024-12-03 10:48:07 -07:00
parent 08fcd985ea
commit 7be540964a
59 changed files with 2821 additions and 214 deletions

View File

@ -1,6 +1,6 @@
using Dapper;
using System.Data;
using System.Data;
using Dapper;
namespace FabApprovalWorkerService.Services;
@ -28,7 +28,7 @@ public class DalService : IDalService {
int remainingRetries = RETRIES;
bool queryWasSuccessful = false;
Exception exception = null;
Exception? exception = null;
IEnumerable<T> result = new List<T>();
while (!queryWasSuccessful && remainingRetries > 0) {
int backoffSeconds = (RETRIES - remainingRetries--) * BACKOFF_SECONDS_INTERVAL;
@ -60,7 +60,7 @@ public class DalService : IDalService {
int remainingRetries = RETRIES;
bool queryWasSuccessful = false;
Exception exception = null;
Exception? exception = null;
int rowsAffected = 0;
while (!queryWasSuccessful && remainingRetries > 0) {
int backoffSeconds = (RETRIES - remainingRetries--) * BACKOFF_SECONDS_INTERVAL;
@ -86,4 +86,4 @@ public class DalService : IDalService {
return rowsAffected;
}
}
}