{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/Win2D/issues/416","repository_url":"https://api.github.com/repos/Microsoft/Win2D","labels_url":"https://api.github.com/repos/Microsoft/Win2D/issues/416/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/Win2D/issues/416/comments","events_url":"https://api.github.com/repos/Microsoft/Win2D/issues/416/events","html_url":"https://github.com/Microsoft/Win2D/issues/416","id":173496896,"number":416,"title":"[Question] Is there an example of calling RunOnGameLoopThreadAsync from C++?","user":{"login":"chuckries","id":6598594,"avatar_url":"https://avatars.githubusercontent.com/u/6598594?v=3","gravatar_id":"","url":"https://api.github.com/users/chuckries","html_url":"https://github.com/chuckries","followers_url":"https://api.github.com/users/chuckries/followers","following_url":"https://api.github.com/users/chuckries/following{/other_user}","gists_url":"https://api.github.com/users/chuckries/gists{/gist_id}","starred_url":"https://api.github.com/users/chuckries/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chuckries/subscriptions","organizations_url":"https://api.github.com/users/chuckries/orgs","repos_url":"https://api.github.com/users/chuckries/repos","events_url":"https://api.github.com/users/chuckries/events{/privacy}","received_events_url":"https://api.github.com/users/chuckries/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-26T16:53:09Z","updated_at":"2016-08-26T16:56:25Z","closed_at":null,"body":"I know in C# you can pass a regular lambda and things are fine. I tried to pass a C++ lambda and it won't build because the method takes a `DispatchedHandler^`. I am having trouble finding a decent example of C++ DispatchedHandlers. Are there any examples you can provide?"},"comment":{"url":"https://api.github.com/repos/Microsoft/Win2D/issues/comments/242790373","html_url":"https://github.com/Microsoft/Win2D/issues/416#issuecomment-242790373","issue_url":"https://api.github.com/repos/Microsoft/Win2D/issues/416","id":242790373,"user":{"login":"damyanp","id":8118402,"avatar_url":"https://avatars.githubusercontent.com/u/8118402?v=3","gravatar_id":"","url":"https://api.github.com/users/damyanp","html_url":"https://github.com/damyanp","followers_url":"https://api.github.com/users/damyanp/followers","following_url":"https://api.github.com/users/damyanp/following{/other_user}","gists_url":"https://api.github.com/users/damyanp/gists{/gist_id}","starred_url":"https://api.github.com/users/damyanp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damyanp/subscriptions","organizations_url":"https://api.github.com/users/damyanp/orgs","repos_url":"https://api.github.com/users/damyanp/repos","events_url":"https://api.github.com/users/damyanp/events{/privacy}","received_events_url":"https://api.github.com/users/damyanp/received_events","type":"User","site_admin":false},"created_at":"2016-08-26T16:56:25Z","updated_at":"2016-08-26T16:56:25Z","body":"It's not a Win2D sample, but there's an example here that shows creating a DispatchedHandler in C++/CX:\r\n\r\nhttps://github.com/Microsoft/Windows-universal-samples/blob/e13cf5dca497ad661706d150a154830666913be4/Samples/WRLInProcessWinRTComponent/cpp/cpp/Scenario1_OvenClient.xaml.cpp#L59"}}
{"actor":{"display_login":"damyanp"}}