From 3237737d8240085914e0c64cd86724cd5fd72aee Mon Sep 17 00:00:00 2001 From: yangxiaodong Date: Thu, 17 Aug 2017 15:58:11 +0800 Subject: [PATCH] modify complex type parameter bind error. --- src/DotNetCore.CAP/Internal/IModelBinder.ComplexType.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/DotNetCore.CAP/Internal/IModelBinder.ComplexType.cs b/src/DotNetCore.CAP/Internal/IModelBinder.ComplexType.cs index f4362f2..6dbcb74 100644 --- a/src/DotNetCore.CAP/Internal/IModelBinder.ComplexType.cs +++ b/src/DotNetCore.CAP/Internal/IModelBinder.ComplexType.cs @@ -22,9 +22,7 @@ namespace DotNetCore.CAP.Internal { var type = _parameterInfo.ParameterType; - var message = Helper.FromJson(content); - - var value = Helper.FromJson(message.Content.ToString(), type); + var value = Helper.FromJson(content, type); return Task.FromResult(ModelBindingResult.Success(value)); }