Giter VIP home page Giter VIP logo

Comments (9)

Eilyyyy avatar Eilyyyy commented on July 21, 2024

i think you can fix this problems by serialize simple type of message just use to string method, or always treat as complex type.

from cap.

yang-xiaodong avatar yang-xiaodong commented on July 21, 2024

Hi @Eilyyyy , thanks for your feedback.

I have already fixed this bug at commit 297cecf.

I will release a new version later.

from cap.

Eilyyyy avatar Eilyyyy commented on July 21, 2024

tim 20170727155751
i'm sure i'm on this commit but the problem is still here.

from cap.

yang-xiaodong avatar yang-xiaodong commented on July 21, 2024

you mean that you are using this void Publish<T>(string name, T contentObj) overloaded method to publish message with datetime or guid?

from cap.

Eilyyyy avatar Eilyyyy commented on July 21, 2024

yes, PublishAsync

from cap.

Eilyyyy avatar Eilyyyy commented on July 21, 2024

i think the problem is here
var isComplexType = !TypeDescriptor.GetConverter(type).CanConvertFrom(typeof(string));

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.

from cap.

yang-xiaodong avatar yang-xiaodong commented on July 21, 2024

Yes, I didn't consider this kind of situation, I will fix it later, thank you.

from cap.

yang-xiaodong avatar yang-xiaodong commented on July 21, 2024

Hi @Eilyyyy
I fixed this problem and removed the overloaded method of publishing string content.

from cap.

yang-xiaodong avatar yang-xiaodong commented on July 21, 2024

fixed at v1.1.0

from cap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.