Coder Social home page Coder Social logo

Comments (5)

alexyakunin avatar alexyakunin commented on May 2, 2024

where STL Fusion makes use of their own JSON serializers which ignore this configuration.

Hi @devedse , it uses JSON.NET as well, and I think this specific option should be easy to change. Here is how you can find every place where Fusion configures something related to JSON:

image

As for why your attempt to change this didn't work, most likely it's because there are at least 4 places where serialization & deserialization happens:

  • Server-side: ASP.NET Core + server-side WebSocket channel
  • Client-side: RestEase deserialization + client-side WebSocket channel

The screenshot shows some of these places; the WebSocket-related serializers are configured here:
image
image

In both these cases ChannelSerializerPairFactory can be provided via WebSocketChannelProvider.Options or WebSocketServer.Options.

from stl.fusion.

alexyakunin avatar alexyakunin commented on May 2, 2024

Besides that:

  1. 1919aa8 - this problem is gone now, + you can change the defaults as you like (just remember to do this before calling any Fusion stuff). Use v0.7.38 NuGet package - this fix is already there.

  2. Consider using [JsonIgnore] or a different type to send to the client. Typically, people map DB record/entity type to something else (model type) before they send it.

from stl.fusion.

alexyakunin avatar alexyakunin commented on May 2, 2024

Please LMK if it's ok to close this issue :)

from stl.fusion.

devedse avatar devedse commented on May 2, 2024

@alexyakunin , wow you're amazing! 😄

Hopefully I'll have some time later today or tomorrow to test everything out.

Are you open for some more feedback for Stl.Fusion? (Shall I make a new issue for that)

from stl.fusion.

alexyakunin avatar alexyakunin commented on May 2, 2024

Absolutely 👍 As for the issues, if you're fine with Discord, a faster way to resolve question-style topics is to ask q. there first, but this is totally optional. Creating issues is actually better in the long run, since they can be googled :)

from stl.fusion.

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.