Skip to content

Instantly share code, notes, and snippets.

@r4hulp

r4hulp/AnyDialog.cs

Last active Dec 29, 2017
Embed
What would you like to do?
Resolve DataStore scope
//In your dialog
Activity message = result as Activity;
//Create scope with respect to activity
using (var scope = DialogModule.BeginLifetimeScope(Conversation.Container, message))
{
//Resolve scope for IBotDataStore<BotData>
IBotDataStore<BotData> stateStore = scope.Resolve<IBotDataStore<BotData>>();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment