Questions tagged [edge.js]

Edge.js is a library that connects Node.js scripts and .NET in the same process, allowing function calls between both parts.

Github page: https://github.com/tjanczuk/edge

84 questions
71
votes
6 answers

How to forcibly keep a Node.js process from terminating?

TL;DR What is the best way to forcibly keep a Node.js process running, i.e., keep its event loop from running empty and hence keeping the process from terminating? The best solution I could come up with was this: const SOME_HUGE_INTERVAL = 1 <<…
Lucio Paiva
  • 19,015
  • 11
  • 82
  • 104
61
votes
8 answers

Using a .NET DLL in Node.js / serverside javascript

I have a pet project that is an online game, the entire game engine is written in C# and I would like to know if there is anyway I can call the functions of this existing assembly (.dll) from a solution built using Node.JS, Socket.IO, Express…
David
  • 8,340
  • 7
  • 49
  • 71
25
votes
2 answers

Calling Node.js from C# .NET

Is it possible to call Node.js functions from a C# ASP.NET server? I found the Edge.js library, but as I understood, it allows Node.js to call into C#. I need the directly reverse solution.
Kamiky
  • 601
  • 2
  • 8
  • 25
19
votes
1 answer

Server Side Rendering Angular 2 in ASP.NET with Edge.js

I'm exploring the possibility of rendering Angular 2 on the server side using Edge.js in an ASP.NET MVC application. I'm aware that the Angular Universal Starter Kit has part of this equation:…
Nicholas Westby
  • 1,109
  • 13
  • 32
10
votes
4 answers

Fingerprint reader on node.js through .NET SDK

I'm trying to get a node.js app to interact with a .NET SDK fingerprint reader called U.are.U. The SDK provides .dll (win32 and x64), Java and .NET libraries. I decided to use .NET for the simple of use, having all the interfaces ready to use and…
pocesar
  • 6,860
  • 6
  • 56
  • 88
7
votes
1 answer

When calling Edge.js from C#, how do you hook stdout and stderr?

Background I am working on a C# program which currently runs Node via Process.Start(). I am capturing the stdout and stderr from this child process and redirecting it for my own reasons. I am looking into replacing the invocation of Node.exe with a…
7
votes
0 answers

Connect edge.js + node-webkit

Edge.js connects node.js and .NET. Node-webkit is an app runtime based on Chromium and node.js. Has anybody put these two together? Is it possible? Explanation: I would like to write apps with front-end in HTML + Typescript and back-end in F# (heavy…
Oldrich Svec
  • 4,191
  • 2
  • 28
  • 54
6
votes
1 answer

GetObject with edge.js

I'm currently working to replace my ActiveX-Implementation in IE through a REST-API based on node.js with running edge.js So far the basic examples from the page implementing worked pretty well. I have my index.js set up to var edge =…
relief.melone
  • 3,042
  • 1
  • 28
  • 57
4
votes
3 answers

Visual Studio iOS deployment fails because "The edge module has not been pre-compiled"

I am trying to deploy a HTML/CSS/JS Apache Cordova application from a windows machine to a Mac. I believe they are communicating properly through the remotebuild agent but when I attempt to build a blank project to deploy on the Mac this error is…
Roger99
  • 981
  • 2
  • 11
  • 42
4
votes
1 answer

Using edge.js is it possible for the .Net C# module to call the node.js part of the process, i.e. do the reverse call?

You can see the interop model for going from Node.js -> C#, here. What I want to know is, can the C# code then make a call to a method in the Node.js part of the process from the C#, before returning? Imagine if you had a call, like var webApi =…
Jordan Morris
  • 2,101
  • 2
  • 24
  • 41
3
votes
0 answers

Monitoring Edge.js Tasks from C#

My goal is to be able to cancel a long running Node.js task that has been called from C# using Edge.js. When using tasks normally, you can specify a cancellation token, give your task some time to execute, then cancel it if it is going beyond your…
Joe
  • 31
  • 1
3
votes
0 answers

Sigsegv error after installing node.js, express and edge. Mismatch of versions of modules?

I'm a newbie, and I installed the following successfully on MacOS Yosemite version 10.10.4 node.js v0.12.2 edge@0.10.0 edge-sql@0.1.0 express@4.12.3 When I installed Node and express, everything worked at that step When I installed edge, i…
3
votes
1 answer

Load WCF app.config bindings in edge.js app

I have a WCF client for soap service, generated via SvcUtil that I want to consume via edge.js Is it possible to load an service model binding from an app.config using edge.js or will I have to construct the bindings in c#? If I can, Where should…
Gar Maguire
  • 51
  • 1
  • 7
2
votes
0 answers

Can't call method inside C# DLL from node service using Edge.js

I am playing with the Edge.js and were able to run most of the examples but when it comes to using compiled C# dll file, I couldn't get it working. My node.js code is var clrMethod = edge.func({ assemblyFile:…
Ajendra Prasad
  • 299
  • 1
  • 8
  • 22
2
votes
1 answer

Integrating edge.js with IntelliJ IDEA

How can I add syntax highlighting to edge.js template files in IntelliJ IDEA / Webstorm? There is no obvious plugin available. Perhaps there is something for a similar templating engine that would work?
Ali Sherafat
  • 3,506
  • 2
  • 38
  • 51
1
2 3 4 5 6