Skip to content

Commit

Permalink
update tagsserializer
Browse files Browse the repository at this point in the history
  • Loading branch information
nytian committed Oct 24, 2023
1 parent 86ff6a6 commit 72af2e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/DurableTask.AzureStorage/Tracking/TagsSerializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@
// ----------------------------------------------------------------------------------

using System.Collections.Generic;
using System.Text.Json;
using Newtonsoft.Json;

namespace DurableTask.AzureStorage.Tracking
{
internal static class TagsSerializer
{
public static string Serialize(IDictionary<string, string> tags)
=> JsonSerializer.Serialize(tags);
=> JsonConvert.SerializeObject(tags);

public static IDictionary<string, string> Deserialize(string tags)
=> JsonSerializer.Deserialize<Dictionary<string,string>>(tags);
=> JsonConvert.DeserializeObject<Dictionary<string,string>>(tags);
}
}

1 comment on commit 72af2e4

@nytian
Copy link
Collaborator Author

@nytian nytian commented on 72af2e4 Oct 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cherry pick commit 71976c4 from main branch.
PR: #995

Please sign in to comment.