From 835b589ae66cdb422fbbb85c66c8c989a3693a4e Mon Sep 17 00:00:00 2001 From: Savorboard Date: Tue, 19 Nov 2019 15:58:23 +0800 Subject: [PATCH] Fix obsolete --- src/DotNetCore.CAP.Dashboard/JsonDispatcher.cs | 4 ++-- src/DotNetCore.CAP.Dashboard/JsonStats.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/DotNetCore.CAP.Dashboard/JsonDispatcher.cs b/src/DotNetCore.CAP.Dashboard/JsonDispatcher.cs index 97e1259..aad6d42 100644 --- a/src/DotNetCore.CAP.Dashboard/JsonDispatcher.cs +++ b/src/DotNetCore.CAP.Dashboard/JsonDispatcher.cs @@ -37,8 +37,8 @@ namespace DotNetCore.CAP.Dashboard Converters = new JsonConverter[] { new StringEnumConverter - { - CamelCaseText= true + { + NamingStrategy = new CamelCaseNamingStrategy() } } }; diff --git a/src/DotNetCore.CAP.Dashboard/JsonStats.cs b/src/DotNetCore.CAP.Dashboard/JsonStats.cs index 6e13ccf..35dbf0a 100644 --- a/src/DotNetCore.CAP.Dashboard/JsonStats.cs +++ b/src/DotNetCore.CAP.Dashboard/JsonStats.cs @@ -34,7 +34,7 @@ namespace DotNetCore.CAP.Dashboard { new StringEnumConverter { - CamelCaseText = true + NamingStrategy = new CamelCaseNamingStrategy() } } };