diff --git a/SearAlertingServiceCore/Actions/SlackAction.cs b/SearAlertingServiceCore/Actions/SlackAction.cs index 72d4466..d12e9a6 100644 --- a/SearAlertingServiceCore/Actions/SlackAction.cs +++ b/SearAlertingServiceCore/Actions/SlackAction.cs @@ -13,7 +13,7 @@ public static bool Execute(string slackUrl, string message, string link) using (WebClient client = new WebClient()) { NameValueCollection data = new NameValueCollection(); - data["payload"] = String.Format("{ \"text\": \"{0}\r\n\r\n<{1}|Click here> for details!\", \"username\": \"Sear Alert Bot\"}", message, link); + data["payload"] = "{ \"text\": \"" + message + "\r\n\r\n<" + link + "|Click here> for details!\", \"username\": \"Sear Alert Bot\"}"; client.UploadValues(slackUrl, "POST", data); } diff --git a/SearAlertingServiceCore/SearAlertingServiceCore.csproj b/SearAlertingServiceCore/SearAlertingServiceCore.csproj index 413260d..247f57d 100644 --- a/SearAlertingServiceCore/SearAlertingServiceCore.csproj +++ b/SearAlertingServiceCore/SearAlertingServiceCore.csproj @@ -13,7 +13,7 @@ - Never + Always Never