Skip to content

Commit be94c34

Browse files
SkinnySackboyperrich
authored andcommitted
Migrating obsolete methods Deserialize and Serialize to DeserializeJob and SerializeJob.
1 parent e11c1ce commit be94c34

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/Hangfire.MemoryStorage/MemoryStorageConnection.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public override string CreateExpiredJob(Job job, IDictionary<string, string> par
5757
Guard.ArgumentNotNull(job, "job");
5858
Guard.ArgumentNotNull(parameters, "parameters");
5959

60-
var invocationData = InvocationData.Serialize(job);
60+
var invocationData = InvocationData.SerializeJob(job);
6161

6262
var jobData = new JobDto
6363
{
@@ -188,7 +188,7 @@ public override JobData GetJobData(string jobId)
188188

189189
try
190190
{
191-
job = invocationData.Deserialize();
191+
job = invocationData.DeserializeJob();
192192
}
193193
catch (JobLoadException ex)
194194
{

src/Hangfire.MemoryStorage/MemoryStorageMonitoringApi.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ private static Job DeserializeJob(string invocationData, string arguments)
389389

390390
try
391391
{
392-
return data.Deserialize();
392+
return data.DeserializeJob();
393393
}
394394
catch (JobLoadException)
395395
{

0 commit comments

Comments
 (0)