From e373c783288298044e221aaef69fc8da94119494 Mon Sep 17 00:00:00 2001
From: Mike van Mourik <130973326+MikeVanMourik@users.noreply.github.com>
Date: Wed, 31 Jul 2024 14:29:58 +0200
Subject: [PATCH] fix white spaces
---
.../AutoUpdater/Models/SlackSettings.cs | 2 +-
.../AutoUpdater/Services/UpdateService.cs | 16 ++++++++--------
2 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/WiserTaskScheduler/AutoUpdater/Models/SlackSettings.cs b/WiserTaskScheduler/AutoUpdater/Models/SlackSettings.cs
index 9cf1d818..2bab3b4c 100644
--- a/WiserTaskScheduler/AutoUpdater/Models/SlackSettings.cs
+++ b/WiserTaskScheduler/AutoUpdater/Models/SlackSettings.cs
@@ -5,7 +5,7 @@ public class SlackSettings
///
/// Gets or sets the name of the SlackChannel.
///
- public string Channel { get; set; }
+ public string Channel { get; set; }
///
/// Gets or sets the token of the bot that is being used.
diff --git a/WiserTaskScheduler/AutoUpdater/Services/UpdateService.cs b/WiserTaskScheduler/AutoUpdater/Services/UpdateService.cs
index ce290f26..6fed6b74 100644
--- a/WiserTaskScheduler/AutoUpdater/Services/UpdateService.cs
+++ b/WiserTaskScheduler/AutoUpdater/Services/UpdateService.cs
@@ -27,7 +27,7 @@ public class UpdateService : IUpdateService
private Version lastDownloadedVersion;
- public UpdateService(IOptions updateSettings, ILogger logger,ISlackChatService slackChatService, IServiceProvider serviceProvider)
+ public UpdateService(IOptions updateSettings, ILogger logger, ISlackChatService slackChatService, IServiceProvider serviceProvider)
{
this.updateSettings = updateSettings.Value;
this.logger = logger;
@@ -153,7 +153,7 @@ private void UpdateWts(WtsModel wts, List versionList)
var message= $"Could not update WTS '{wts.ServiceName}' to version {versionList[0].Version} due to breaking changes since the current version of the WTS ({version}).{Environment.NewLine}Please check the release logs and resolve the breaking changes before manually updating the WTS.";
logger.LogWarning(message);
- InformPeople(wts,subject,message);
+ InformPeople(wts, subject, message);
return;
case UpdateStates.Update:
// If the update time is in the future wait until the update time.
@@ -237,7 +237,7 @@ private void PerformUpdate(WtsModel wts, Version currentVersion, Version version
var subject = "WTS Auto Updater - WTS not found";
var message= $"The service for WTS '{wts.ServiceName}' could not be found on the server and can therefore not be updated.";
- InformPeople(wts,subject,message);
+ InformPeople(wts, subject, message);
logger.LogWarning($"No service found for '{wts.ServiceName}'.");
return;
@@ -283,7 +283,7 @@ private void PerformUpdate(WtsModel wts, Version currentVersion, Version version
if (wts.SendEmailOnUpdateComplete)
{
- InformPeople(wts,subject,message);
+ InformPeople(wts, subject, message);
}
}
catch (Exception e)
@@ -293,7 +293,7 @@ private void PerformUpdate(WtsModel wts, Version currentVersion, Version version
logger.LogError($"Exception occured while updating WTS '{wts.ServiceName}'.{Environment.NewLine}{Environment.NewLine}{e}");
- InformPeople(wts,subject,message);
+ InformPeople(wts, subject, message);
}
}
@@ -374,7 +374,7 @@ private void RevertUpdate(WtsModel wts, ServiceController serviceController, Ver
var message= $"Failed to update WTS '{wts.ServiceName}' to version {versionToUpdateTo}, successfully restored to version {currentVersion}.
Error when updating:
{updateException}";
logger.LogError(message);
- InformPeople(wts,subject,message);
+ InformPeople(wts, subject, message);
}
catch (InvalidOperationException revertException)
{
@@ -382,7 +382,7 @@ private void RevertUpdate(WtsModel wts, ServiceController serviceController, Ver
var message= $"Failed to update WTS '{wts.ServiceName}' to version {versionToUpdateTo}, failed to restore version {currentVersion}.{Environment.NewLine}{Environment.NewLine}Error when reverting:{Environment.NewLine}{revertException}{Environment.NewLine}{Environment.NewLine}Error when updating:{Environment.NewLine}{updateException}";
logger.LogError(message);
- InformPeople(wts,subject,message);
+ InformPeople(wts, subject, message);
}
}
@@ -391,7 +391,7 @@ private void InformPeople(WtsModel wts, string subject, string message, bool sen
if (sendEmail)
{
var emailMessage = message.Replace(Environment.NewLine, "
");
- EmailAdministrator(wts.ContactEmail,subject,emailMessage,wts.ServiceName);
+ EmailAdministrator(wts.ContactEmail, subject,emailMessage, wts.ServiceName);
}
if (sendSlack)