{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/1315","repository_url":"https://api.github.com/repos/Microsoft/BotBuilder","labels_url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/1315/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/1315/comments","events_url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/1315/events","html_url":"https://github.com/Microsoft/BotBuilder/issues/1315","id":178849294,"number":1315,"title":"How to get ChannelIdin OnCompletionAsyncDelegate","user":{"login":"Johndgnzj","id":14119964,"avatar_url":"https://avatars.githubusercontent.com/u/14119964?v=3","gravatar_id":"","url":"https://api.github.com/users/Johndgnzj","html_url":"https://github.com/Johndgnzj","followers_url":"https://api.github.com/users/Johndgnzj/followers","following_url":"https://api.github.com/users/Johndgnzj/following{/other_user}","gists_url":"https://api.github.com/users/Johndgnzj/gists{/gist_id}","starred_url":"https://api.github.com/users/Johndgnzj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Johndgnzj/subscriptions","organizations_url":"https://api.github.com/users/Johndgnzj/orgs","repos_url":"https://api.github.com/users/Johndgnzj/repos","events_url":"https://api.github.com/users/Johndgnzj/events{/privacy}","received_events_url":"https://api.github.com/users/Johndgnzj/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"chrimc62","id":17637681,"avatar_url":"https://avatars.githubusercontent.com/u/17637681?v=3","gravatar_id":"","url":"https://api.github.com/users/chrimc62","html_url":"https://github.com/chrimc62","followers_url":"https://api.github.com/users/chrimc62/followers","following_url":"https://api.github.com/users/chrimc62/following{/other_user}","gists_url":"https://api.github.com/users/chrimc62/gists{/gist_id}","starred_url":"https://api.github.com/users/chrimc62/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrimc62/subscriptions","organizations_url":"https://api.github.com/users/chrimc62/orgs","repos_url":"https://api.github.com/users/chrimc62/repos","events_url":"https://api.github.com/users/chrimc62/events{/privacy}","received_events_url":"https://api.github.com/users/chrimc62/received_events","type":"User","site_admin":false},"assignees":[{"login":"chrimc62","id":17637681,"avatar_url":"https://avatars.githubusercontent.com/u/17637681?v=3","gravatar_id":"","url":"https://api.github.com/users/chrimc62","html_url":"https://github.com/chrimc62","followers_url":"https://api.github.com/users/chrimc62/followers","following_url":"https://api.github.com/users/chrimc62/following{/other_user}","gists_url":"https://api.github.com/users/chrimc62/gists{/gist_id}","starred_url":"https://api.github.com/users/chrimc62/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrimc62/subscriptions","organizations_url":"https://api.github.com/users/chrimc62/orgs","repos_url":"https://api.github.com/users/chrimc62/repos","events_url":"https://api.github.com/users/chrimc62/events{/privacy}","received_events_url":"https://api.github.com/users/chrimc62/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2016-09-23T11:08:46Z","updated_at":"2016-10-06T09:44:37Z","closed_at":"2016-10-05T03:43:19Z","body":"I am using a IDialog with FormFlow to build a bot\r\ni'm confused how to get correct context.ChannelId in event of \"OnCompletionAsyncDelegate\"\r\na simple code like below:\r\n```\r\n    [Serializable]\r\n    public class OrderDialog\r\n    {\r\n        public static IForm<OrderDialog> BuildForm()\r\n        {\r\n            var builders = new FormBuilder<OrderDialog>();\r\n            OnCompletionAsyncDelegate<OrderDialog> processOrder = async (context, state) =>\r\n            {\r\n                IMessageActivity reply = context.MakeMessage();\r\n                reply.Text = string.Format(\"You come from {0} \", context.ChannelId ); // but context.ChannelId equals null...\r\n                await context.PostAsync(reply);\r\n            };\r\n            return new FormBuilder<OrderDialog>()\r\n                    .OnCompletion(processOrder)\r\n                    .Build();\r\n        }\r\n\r\n    }\r\n```"},"comment":{"url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/comments/251915309","html_url":"https://github.com/Microsoft/BotBuilder/issues/1315#issuecomment-251915309","issue_url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/1315","id":251915309,"user":{"login":"Johndgnzj","id":14119964,"avatar_url":"https://avatars.githubusercontent.com/u/14119964?v=3","gravatar_id":"","url":"https://api.github.com/users/Johndgnzj","html_url":"https://github.com/Johndgnzj","followers_url":"https://api.github.com/users/Johndgnzj/followers","following_url":"https://api.github.com/users/Johndgnzj/following{/other_user}","gists_url":"https://api.github.com/users/Johndgnzj/gists{/gist_id}","starred_url":"https://api.github.com/users/Johndgnzj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Johndgnzj/subscriptions","organizations_url":"https://api.github.com/users/Johndgnzj/orgs","repos_url":"https://api.github.com/users/Johndgnzj/repos","events_url":"https://api.github.com/users/Johndgnzj/events{/privacy}","received_events_url":"https://api.github.com/users/Johndgnzj/received_events","type":"User","site_admin":false},"created_at":"2016-10-06T09:44:37Z","updated_at":"2016-10-06T09:44:37Z","body":"dialog solve my problem.\r\n\r\nbtw, i would like to know how long will context's userdata live in session?\r\nis any document write about this?"}}
{"actor":{"display_login":"Johndgnzj"}}