Skip to content

Instantly share code, notes, and snippets.

@r4hulp
Created December 29, 2017 07:33
Show Gist options
  • Save r4hulp/86ff1b6c93c68e830fd52c1e6a114597 to your computer and use it in GitHub Desktop.
Save r4hulp/86ff1b6c93c68e830fd52c1e6a114597 to your computer and use it in GitHub Desktop.
Registering module
//In Global.asax.cs
builder.RegisterModule(new AzureModule(Assembly.GetExecutingAssembly()));
var store = new TableBotDataStore(ConfigurationManager.ConnectionStrings["StorageConnectionString"].ConnectionString);
builder.Register(c => store)
.Keyed<IBotDataStore<BotData>>(AzureModule.Key_DataStore)
.AsSelf()
.SingleInstance();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment