c# - How to Integrate NodeJs in Existing .Net MVC application Using EdgeJs? -


Can someone recommend another way of integrating nodes in the net message application? I am now using the following code:

  Public class startup {public ASICNC works & lt; Object & gt; Invitation (Dynamic Input) {Department Rip Engineer = New Department Ripp (New MVCApusing Agesjmongo Debecontx ()); Var section = person.GetAllDepartments (); // var department = "hello"; Returning department; }} Public Class Department Controller: Controller {Department Repository Department Repository = New Department Repository (New MVCPUG EdgeJmongo DBCTXT); String connectionString = ConfigurationManager.AppSettings ["connectionString"]. ToString (); Public View Results Index () {// var clrMethod = Edge.Func ("DepartmentRep.cs"); Var getData = Edge.Func (". / DepartmentRep.dll"); // Return View (clrMethod); See Return (Department Repository. GetAllDepartments ()); }}  

It seems that, you may have a misunderstanding about using EdgeJs . Your startup / invoice class / signature is going to be told by node (javascript), and by that code you are showing that you are loading. Net to Net

Also invite the signature, as it should be asynchronous.

If you want to use the node, then the net side. You should look at the project document below.

  var func = Edge.Func (@ "Return function (data, callback) {callback (empty, 'welcome node. JS' + data);)");  

As you can see that the wrapped code is Javascript, it is currently running.NET is more specifically running in the node. The correct use case is IMMO, that is, some nodes are better than the net. (IMMO again)

which is the perfect opposite from the NodeJet Net Edo SQL Server Access, a node specialty node reference


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -