Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class EdgeController : ApiController
- {
- static Func<object, Task<object>> func = Edge.Func(
- @"return function(data, callback){
- callback(null, 'Node.js ' + process.version + ' welcome '+data);
- }");
- [HttpGet]
- public string Get()
- {
- return (string)func(".Net").Result;
- }
- }
Add Comment
Please, Sign In to add comment