-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
model bind for type like datetime guid always failed. #18
Comments
i think you can fix this problems by serialize simple type of message just use to string method, or always treat as complex type. |
you mean that you are using this |
yes, PublishAsync |
i think the problem is here this type can convert from string , so you treat it as simple type.you serialize a 134 you got 123, but you serialize a guid you got a "xxxx-xxxxxx-xxxx", notice you have a quotation marks and this cause you can't convert from the content. |
Yes, I didn't consider this kind of situation, I will fix it later, thank you. |
Hi @Eilyyyy |
fixed at v1.1.0 |
when you send message type that can simplely convert from string like guid, datetime, you always get a format exception that not valid value for this type. the problem is than you publish message always use json string , but you can't just use typeconvert convert json string to a object.
The text was updated successfully, but these errors were encountered: