Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

Is it possible to pass arbitrary .NET types including delegates? #701

Closed

Description

@moodmosaic

With Edge.js it's possible to pass arbitrary .NET types, including delegates, and then have the JavaScript code invoke the delegates. Then, from the .NET delegates, you return back to JavaScript, and so on.

Would it be possible to do something similar with this tool?

Activity

  1. SteveSandersonMS commented on Feb 22, 2017

    @SteveSandersonMS
    Member

    That's not something currently supported natively in NodeServices. At some point, we might be able to enable Edge.js as an alternative transport layer that you can use with NodeServices (similar to how you can currently choose between HTTP and Socket transports), but that wasn't possible last time I checked because Edge.js didn't support hosting Node within a .NET Core process.

    So right now, all types you pass have to be serializable by Json.NET.

  2. moodmosaic commented on Mar 20, 2018

    @moodmosaic
    Author

    Is there some fundamental difference between desktop and CoreCLR that prevents hosting Node within a .NET Core process?

  3. SteveSandersonMS commented on Mar 22, 2018

    @SteveSandersonMS
    Member

    Nothing fundamental that I know of. AFAIK, it's just not implemented in Edge.js.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions