Created
September 30, 2020 21:18
-
-
Save dcomartin/5e8438967cb866ed6995a5e4aea123c0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Newtonsoft.Json; | |
namespace Hangfire.MediatR | |
{ | |
public static class HangfireConfigurationExtensions | |
{ | |
public static void UseMediatR(this IGlobalConfiguration configuration) | |
{ | |
var jsonSettings = new JsonSerializerSettings | |
{ | |
TypeNameHandling = TypeNameHandling.All | |
}; | |
configuration.UseSerializerSettings(jsonSettings); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment