{"action":"closed","issue":{"url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/853","repository_url":"https://api.github.com/repos/Microsoft/BotBuilder","labels_url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/853/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/853/comments","events_url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/853/events","html_url":"https://github.com/Microsoft/BotBuilder/issues/853","id":168261095,"number":853,"title":"Context Data not available in Case Condition C#","user":{"login":"rzmoz","id":17024023,"avatar_url":"https://avatars.githubusercontent.com/u/17024023?v=3","gravatar_id":"","url":"https://api.github.com/users/rzmoz","html_url":"https://github.com/rzmoz","followers_url":"https://api.github.com/users/rzmoz/followers","following_url":"https://api.github.com/users/rzmoz/following{/other_user}","gists_url":"https://api.github.com/users/rzmoz/gists{/gist_id}","starred_url":"https://api.github.com/users/rzmoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rzmoz/subscriptions","organizations_url":"https://api.github.com/users/rzmoz/orgs","repos_url":"https://api.github.com/users/rzmoz/repos","events_url":"https://api.github.com/users/rzmoz/events{/privacy}","received_events_url":"https://api.github.com/users/rzmoz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/BotBuilder/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":{"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},"assignees":[{"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}],"milestone":null,"comments":3,"created_at":"2016-07-29T06:44:15Z","updated_at":"2016-08-12T23:06:48Z","closed_at":"2016-08-12T23:06:48Z","body":"Hi, I'm making a conversation based on Cases: Microsoft.Bot.Builder.Dialogs.ICase<in T, R>\r\n\r\nhttps://github.com/Microsoft/BotBuilder/blob/master/CSharp/Library/Dialogs/Chain.cs Line 738\r\n\r\nI would like to make a case trigger on data from the DataBags available in the Conversation context: **context.ConversationData, context.UserData and context.PrivateConversationData**\r\n\r\nBut the ICase interface doesn't pass a handle for the databags in the Condition clause: \r\n\r\n**Observed:**\r\nFunc&lt;T, bool&gt; Condition { get; }\r\n\r\n**Wished for** \r\nsomething where I could write this in my condition delegate\r\n(context,activity)=>\r\n{\r\n  bool myConditionMet;\r\n  return context.ConversationData.TryGetValue(\"MyCondition\", out myConditionMet);\r\n}\r\n\r\n"}}
{"actor":{"display_login":"Andrea-Orimoto"}}