Created
December 29, 2017 07:33
-
-
Save r4hulp/86ff1b6c93c68e830fd52c1e6a114597 to your computer and use it in GitHub Desktop.
Registering module
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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