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