Browse Source

modify complex type parameter bind error.

master
yangxiaodong 7 years ago
parent
commit
3237737d82
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      src/DotNetCore.CAP/Internal/IModelBinder.ComplexType.cs

+ 1
- 3
src/DotNetCore.CAP/Internal/IModelBinder.ComplexType.cs View File

@@ -22,9 +22,7 @@ namespace DotNetCore.CAP.Internal
{ {
var type = _parameterInfo.ParameterType; var type = _parameterInfo.ParameterType;


var message = Helper.FromJson<Message>(content);

var value = Helper.FromJson(message.Content.ToString(), type);
var value = Helper.FromJson(content, type);


return Task.FromResult(ModelBindingResult.Success(value)); return Task.FromResult(ModelBindingResult.Success(value));
} }


Loading…
Cancel
Save