{"action":"created","issue":{"url":"https://api.github.com/repos/tjanczuk/edge/issues/330","labels_url":"https://api.github.com/repos/tjanczuk/edge/issues/330/labels{/name}","comments_url":"https://api.github.com/repos/tjanczuk/edge/issues/330/comments","events_url":"https://api.github.com/repos/tjanczuk/edge/issues/330/events","html_url":"https://github.com/tjanczuk/edge/issues/330","id":110910136,"number":330,"title":"How to deal the .NET's event with the nodejs event's handler.","user":{"login":"gentlecolder","id":5178166,"avatar_url":"https://avatars.githubusercontent.com/u/5178166?v=3","gravatar_id":"","url":"https://api.github.com/users/gentlecolder","html_url":"https://github.com/gentlecolder","followers_url":"https://api.github.com/users/gentlecolder/followers","following_url":"https://api.github.com/users/gentlecolder/following{/other_user}","gists_url":"https://api.github.com/users/gentlecolder/gists{/gist_id}","starred_url":"https://api.github.com/users/gentlecolder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gentlecolder/subscriptions","organizations_url":"https://api.github.com/users/gentlecolder/orgs","repos_url":"https://api.github.com/users/gentlecolder/repos","events_url":"https://api.github.com/users/gentlecolder/events{/privacy}","received_events_url":"https://api.github.com/users/gentlecolder/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-12T05:20:04Z","updated_at":"2015-10-12T07:49:19Z","closed_at":null,"body":"the problem code is bellow:\r\n/*the edge code bellow: edged.js*/\r\nvar stractData = edge.func(function () {/*\r\n\r\n    async (dynamic input) => {\r\n\t\t   Box.DataMonitorValueChanged +=input.DataChangedHandler;\r\n    }   \r\n*/});\r\n\r\nmodule.exports.stractData=stractData;\r\n-------------------------------------------------------------------\r\n\r\n/*the nodejs code bellow:*/\r\nvar databox=require('edged.js');\r\n\r\nvar util = require('util');\r\n\r\nvar input = {\r\n    DataChangedHandler: function (object sender, IList<DataMonitorValueChangedArgs> e) {\r\n         foreach (DataMonitorValueChangedArgs monitorValue in e)\r\n                {\r\n\r\n                  Console.log(monitorValue.ToString()+\";\"+monitorValue.Uid.ToString() + ':' +                     monitorValue.Value + '\\n');\r\n                }\r\n    }\r\n};\r\n\r\ndatabox.stractData(input);\r\n\r\nis there any good solution ?"},"comment":{"url":"https://api.github.com/repos/tjanczuk/edge/issues/comments/147316519","html_url":"https://github.com/tjanczuk/edge/issues/330#issuecomment-147316519","issue_url":"https://api.github.com/repos/tjanczuk/edge/issues/330","id":147316519,"user":{"login":"gentlecolder","id":5178166,"avatar_url":"https://avatars.githubusercontent.com/u/5178166?v=3","gravatar_id":"","url":"https://api.github.com/users/gentlecolder","html_url":"https://github.com/gentlecolder","followers_url":"https://api.github.com/users/gentlecolder/followers","following_url":"https://api.github.com/users/gentlecolder/following{/other_user}","gists_url":"https://api.github.com/users/gentlecolder/gists{/gist_id}","starred_url":"https://api.github.com/users/gentlecolder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gentlecolder/subscriptions","organizations_url":"https://api.github.com/users/gentlecolder/orgs","repos_url":"https://api.github.com/users/gentlecolder/repos","events_url":"https://api.github.com/users/gentlecolder/events{/privacy}","received_events_url":"https://api.github.com/users/gentlecolder/received_events","type":"User","site_admin":false},"created_at":"2015-10-12T07:49:19Z","updated_at":"2015-10-12T07:49:19Z","body":"I tried many times as read the instruction:\r\n\t\t   Func<object, Task<object>> dataChanged=(Func<object, Task<object>>)input.DataChangedHandler;\r\n\t\t  Box.DataMonitorValueChanged +=await dataChanged;\t\r\ndoes it is not suport eventhandler since its delegate is async method?"}}