diff --git a/appveyor.yml b/appveyor.yml
index 988dac7..74b1a10 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -1,4 +1,4 @@
-version: 1.4.1-{build}
+version: 1.4.2-{build}
os: Visual Studio 2017
diff --git a/src/Hangfire.Console/ConsoleExtensions.cs b/src/Hangfire.Console/ConsoleExtensions.cs
index b7bec2c..785fa6a 100644
--- a/src/Hangfire.Console/ConsoleExtensions.cs
+++ b/src/Hangfire.Console/ConsoleExtensions.cs
@@ -2,6 +2,7 @@
using Hangfire.Console.Server;
using Hangfire.Server;
using System;
+using JetBrains.Annotations;
namespace Hangfire.Console
{
@@ -103,6 +104,7 @@ public static void WriteLine(this PerformContext context, object value)
/// Context
/// Format string
/// Argument
+ [StringFormatMethod("format")]
public static void WriteLine(this PerformContext context, string format, object arg0)
=> WriteLine(context, string.Format(format, arg0));
@@ -113,6 +115,7 @@ public static void WriteLine(this PerformContext context, string format, object
/// Format string
/// Argument
/// Argument
+ [StringFormatMethod("format")]
public static void WriteLine(this PerformContext context, string format, object arg0, object arg1)
=> WriteLine(context, string.Format(format, arg0, arg1));
@@ -124,6 +127,7 @@ public static void WriteLine(this PerformContext context, string format, object
/// Argument
/// Argument
/// Argument
+ [StringFormatMethod("format")]
public static void WriteLine(this PerformContext context, string format, object arg0, object arg1, object arg2)
=> WriteLine(context, string.Format(format, arg0, arg1, arg2));
@@ -133,6 +137,7 @@ public static void WriteLine(this PerformContext context, string format, object
/// Context
/// Format string
/// Arguments
+ [StringFormatMethod("format")]
public static void WriteLine(this PerformContext context, string format, params object[] args)
=> WriteLine(context, string.Format(format, args));
@@ -152,6 +157,7 @@ public static void WriteLine(this PerformContext context, ConsoleTextColor color
/// Text color
/// Format string
/// Argument
+ [StringFormatMethod("format")]
public static void WriteLine(this PerformContext context, ConsoleTextColor color, string format, object arg0)
=> WriteLine(context, color, string.Format(format, arg0));
@@ -163,6 +169,7 @@ public static void WriteLine(this PerformContext context, ConsoleTextColor color
/// Format string
/// Argument
/// Argument
+ [StringFormatMethod("format")]
public static void WriteLine(this PerformContext context, ConsoleTextColor color, string format, object arg0, object arg1)
=> WriteLine(context, color, string.Format(format, arg0, arg1));
@@ -175,6 +182,7 @@ public static void WriteLine(this PerformContext context, ConsoleTextColor color
/// Argument
/// Argument
/// Argument
+ [StringFormatMethod("format")]
public static void WriteLine(this PerformContext context, ConsoleTextColor color, string format, object arg0, object arg1, object arg2)
=> WriteLine(context, color, string.Format(format, arg0, arg1, arg2));
@@ -185,6 +193,7 @@ public static void WriteLine(this PerformContext context, ConsoleTextColor color
/// Text color
/// Format string
/// Arguments
+ [StringFormatMethod("format")]
public static void WriteLine(this PerformContext context, ConsoleTextColor color, string format, params object[] args)
=> WriteLine(context, color, string.Format(format, args));
}
diff --git a/src/Hangfire.Console/Hangfire.Console.csproj b/src/Hangfire.Console/Hangfire.Console.csproj
index f68cb88..2f413a4 100644
--- a/src/Hangfire.Console/Hangfire.Console.csproj
+++ b/src/Hangfire.Console/Hangfire.Console.csproj
@@ -2,7 +2,7 @@
Job console for Hangfire
Hangfire.Console
- 1.4.1
+ 1.4.2
Alexey Skalozub
netstandard1.3;net45
true
@@ -11,6 +11,9 @@
Hangfire.Console
hangfire;console;logging
History:
+ v1.4.2:
+ • Added StringFormatMethod attributes on WriteLine methods (for better intellisense)
+
v1.4.1:
• Fix job progress style
• Use explicit json serializer settings
@@ -113,6 +116,7 @@
+