refactor(DIExtensions): Umbenennung von TryAddCryptographerConverter in AddCryptographerConverter
This commit is contained in:
parent
2e68a37944
commit
0d5bcedc01
@ -12,7 +12,7 @@ namespace DigitalData.Core.Security
|
|||||||
{
|
{
|
||||||
public static class DIExtensions
|
public static class DIExtensions
|
||||||
{
|
{
|
||||||
public static JsonSerializerOptions TryAddCryptographerConverter(this JsonSerializerOptions options)
|
public static JsonSerializerOptions AddCryptographerConverter(this JsonSerializerOptions options)
|
||||||
{
|
{
|
||||||
if (!options.Converters.OfType<HashAlgorithmNameConverter>().Any())
|
if (!options.Converters.OfType<HashAlgorithmNameConverter>().Any())
|
||||||
options.Converters.Add(new HashAlgorithmNameConverter());
|
options.Converters.Add(new HashAlgorithmNameConverter());
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user