{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/1122","repository_url":"https://api.github.com/repos/Microsoft/BotBuilder","labels_url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/1122/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/1122/comments","events_url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/1122/events","html_url":"https://github.com/Microsoft/BotBuilder/issues/1122","id":174023407,"number":1122,"title":"Error in IDialog.Wait<R>","user":{"login":"afficionaddo","id":20191900,"avatar_url":"https://avatars.githubusercontent.com/u/20191900?v=3","gravatar_id":"","url":"https://api.github.com/users/afficionaddo","html_url":"https://github.com/afficionaddo","followers_url":"https://api.github.com/users/afficionaddo/followers","following_url":"https://api.github.com/users/afficionaddo/following{/other_user}","gists_url":"https://api.github.com/users/afficionaddo/gists{/gist_id}","starred_url":"https://api.github.com/users/afficionaddo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afficionaddo/subscriptions","organizations_url":"https://api.github.com/users/afficionaddo/orgs","repos_url":"https://api.github.com/users/afficionaddo/repos","events_url":"https://api.github.com/users/afficionaddo/events{/privacy}","received_events_url":"https://api.github.com/users/afficionaddo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"msft-shahins","id":17562300,"avatar_url":"https://avatars.githubusercontent.com/u/17562300?v=3","gravatar_id":"","url":"https://api.github.com/users/msft-shahins","html_url":"https://github.com/msft-shahins","followers_url":"https://api.github.com/users/msft-shahins/followers","following_url":"https://api.github.com/users/msft-shahins/following{/other_user}","gists_url":"https://api.github.com/users/msft-shahins/gists{/gist_id}","starred_url":"https://api.github.com/users/msft-shahins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msft-shahins/subscriptions","organizations_url":"https://api.github.com/users/msft-shahins/orgs","repos_url":"https://api.github.com/users/msft-shahins/repos","events_url":"https://api.github.com/users/msft-shahins/events{/privacy}","received_events_url":"https://api.github.com/users/msft-shahins/received_events","type":"User","site_admin":false},"assignees":[{"login":"msft-shahins","id":17562300,"avatar_url":"https://avatars.githubusercontent.com/u/17562300?v=3","gravatar_id":"","url":"https://api.github.com/users/msft-shahins","html_url":"https://github.com/msft-shahins","followers_url":"https://api.github.com/users/msft-shahins/followers","following_url":"https://api.github.com/users/msft-shahins/following{/other_user}","gists_url":"https://api.github.com/users/msft-shahins/gists{/gist_id}","starred_url":"https://api.github.com/users/msft-shahins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msft-shahins/subscriptions","organizations_url":"https://api.github.com/users/msft-shahins/orgs","repos_url":"https://api.github.com/users/msft-shahins/repos","events_url":"https://api.github.com/users/msft-shahins/events{/privacy}","received_events_url":"https://api.github.com/users/msft-shahins/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2016-08-30T13:46:39Z","updated_at":"2016-08-30T18:19:40Z","closed_at":null,"body":"Hi,\r\n please see the below code:\r\n`private async Task MessageReceivedAsync(IDialogContext context, IAwaitable<IMessageActivity> result)\r\n        {\r\n            var message = await result;\r\n\r\n            if (message.Text.ToLower() == \"hi\")\r\n            {\r\n                context.Wait(AfterHiAsync);\r\n            }\r\n            else if (message.Text.ToLower() == \"reset\")\r\n            {                \r\n                context.Wait(AfterResetAsync(context,result));\r\n            }            \r\n        }`\r\n\r\nI get an error in the line:                  **context.Wait(AfterResetAsync(context,result));**\r\n\r\n_The type arguments for method 'IDialogStack.Wait<R>(ResumeAfter<R>)' cannot be inferred from the usage. Try specifying the arguments explicitly._\r\n\r\nPlease help what am I doing wrong?"},"comment":{"url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/comments/243531740","html_url":"https://github.com/Microsoft/BotBuilder/issues/1122#issuecomment-243531740","issue_url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/1122","id":243531740,"user":{"login":"willportnoy","id":17912714,"avatar_url":"https://avatars.githubusercontent.com/u/17912714?v=3","gravatar_id":"","url":"https://api.github.com/users/willportnoy","html_url":"https://github.com/willportnoy","followers_url":"https://api.github.com/users/willportnoy/followers","following_url":"https://api.github.com/users/willportnoy/following{/other_user}","gists_url":"https://api.github.com/users/willportnoy/gists{/gist_id}","starred_url":"https://api.github.com/users/willportnoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willportnoy/subscriptions","organizations_url":"https://api.github.com/users/willportnoy/orgs","repos_url":"https://api.github.com/users/willportnoy/repos","events_url":"https://api.github.com/users/willportnoy/events{/privacy}","received_events_url":"https://api.github.com/users/willportnoy/received_events","type":"User","site_admin":false},"created_at":"2016-08-30T18:19:39Z","updated_at":"2016-08-30T18:19:39Z","body":"The second line should be something like this:\r\n\r\ncontext.Wait(AfterResetAsync);\r\n\r\nYou should pass the Wait method a delegate representing the next method you want to execute after the user's message, not a result from calling that method."}}
{"actor":{"display_login":"willportnoy"}}