Skip to content

Commit 1f0f285

Browse files
carlosscastrowillportnoy
authored andcommitted
Fix bugs in comments in C# SDK samples. InMemoryDataStore name was incorrect, and also there was a mix in autofact patterns for the samples that used Conversation.UpdateContainer(). (#3571)
1 parent 9a5dd0d commit 1f0f285

File tree

11 files changed

+11
-21
lines changed

11 files changed

+11
-21
lines changed

CSharp/Samples/AlarmBot/Global.asax.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ protected void Application_Start(object sender, EventArgs e)
4040
//// Uncomment one of the lines below to choose your store
4141
//// var store = new TableBotDataStore("...DataStorageConnectionString..."); // requires Microsoft.BotBuilder.Azure Nuget package
4242
//// var store = new DocumentDbBotDataStore("cosmos db uri", "cosmos db key"); // requires Microsoft.BotBuilder.Azure Nuget package
43-
//// var store = new InMemoryStore(); // volatile in-memory store
43+
//// var store = new InMemoryDataStore(); // volatile in-memory store
4444

4545
//builder.Register(c => store)
4646
// .Keyed<IBotDataStore<BotData>>(AzureModule.Key_DataStore)

CSharp/Samples/AnnotatedSandwichBot/Global.asax.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,13 @@ protected void Application_Start()
2020
// // Uncomment one of the lines below to choose your store
2121
// // var store = new TableBotDataStore("...DataStorageConnectionString..."); // requires Microsoft.BotBuilder.Azure Nuget package
2222
// // var store = new DocumentDbBotDataStore("cosmos db uri", "cosmos db key"); // requires Microsoft.BotBuilder.Azure Nuget package
23-
// // var store = new InMemoryStore(); // volatile in-memory store
23+
// // var store = new InMemoryDataStore(); // volatile in-memory store
2424

2525
// builder.Register(c => store)
2626
// .Keyed<IBotDataStore<BotData>>(AzureModule.Key_DataStore)
2727
// .AsSelf()
2828
// .SingleInstance();
2929

30-
// builder.Update(Conversation.Container);
3130
// });
3231

3332
GlobalConfiguration.Configure(WebApiConfig.Register);

CSharp/Samples/EchoBot/Global.asax.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,13 @@ protected void Application_Start()
2020
// // Uncomment one of the lines below to choose your store
2121
// // var store = new TableBotDataStore("...DataStorageConnectionString..."); // requires Microsoft.BotBuilder.Azure Nuget package
2222
// // var store = new DocumentDbBotDataStore("cosmos db uri", "cosmos db key"); // requires Microsoft.BotBuilder.Azure Nuget package
23-
// // var store = new InMemoryStore(); // volatile in-memory store
23+
// // var store = new InMemoryDataStore(); // volatile in-memory store
2424

2525
// builder.Register(c => store)
2626
// .Keyed<IBotDataStore<BotData>>(AzureModule.Key_DataStore)
2727
// .AsSelf()
2828
// .SingleInstance();
2929

30-
// builder.Update(Conversation.Container);
3130
// });
3231

3332
GlobalConfiguration.Configure(WebApiConfig.Register);

CSharp/Samples/PizzaBot/Global.asax.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,13 @@ protected void Application_Start()
2020
// // Uncomment one of the lines below to choose your store
2121
// // var store = new TableBotDataStore("...DataStorageConnectionString..."); // requires Microsoft.BotBuilder.Azure Nuget package
2222
// // var store = new DocumentDbBotDataStore("cosmos db uri", "cosmos db key"); // requires Microsoft.BotBuilder.Azure Nuget package
23-
// // var store = new InMemoryStore(); // volatile in-memory store
23+
// // var store = new InMemoryDataStore(); // volatile in-memory store
2424

2525
// builder.Register(c => store)
2626
// .Keyed<IBotDataStore<BotData>>(AzureModule.Key_DataStore)
2727
// .AsSelf()
2828
// .SingleInstance();
2929

30-
// builder.Update(Conversation.Container);
3130
// });
3231

3332
GlobalConfiguration.Configure(WebApiConfig.Register);

CSharp/Samples/SimpleAlarmBot/Global.asax.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,13 @@ protected void Application_Start()
2020
// // Uncomment one of the lines below to choose your store
2121
// // var store = new TableBotDataStore("...DataStorageConnectionString..."); // requires Microsoft.BotBuilder.Azure Nuget package
2222
// // var store = new DocumentDbBotDataStore("cosmos db uri", "cosmos db key"); // requires Microsoft.BotBuilder.Azure Nuget package
23-
// // var store = new InMemoryStore(); // volatile in-memory store
23+
// // var store = new InMemoryDataStore(); // volatile in-memory store
2424

2525
// builder.Register(c => store)
2626
// .Keyed<IBotDataStore<BotData>>(AzureModule.Key_DataStore)
2727
// .AsSelf()
2828
// .SingleInstance();
2929

30-
// builder.Update(Conversation.Container);
3130
// });
3231

3332
GlobalConfiguration.Configure(WebApiConfig.Register);

CSharp/Samples/SimpleDispatchDialog/Global.asax.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,13 @@ protected void Application_Start()
2020
// // Uncomment one of the lines below to choose your store
2121
// // var store = new TableBotDataStore("...DataStorageConnectionString..."); // requires Microsoft.BotBuilder.Azure Nuget package
2222
// // var store = new DocumentDbBotDataStore("cosmos db uri", "cosmos db key"); // requires Microsoft.BotBuilder.Azure Nuget package
23-
// // var store = new InMemoryStore(); // volatile in-memory store
23+
// // var store = new InMemoryDataStore(); // volatile in-memory store
2424

2525
// builder.Register(c => store)
2626
// .Keyed<IBotDataStore<BotData>>(AzureModule.Key_DataStore)
2727
// .AsSelf()
2828
// .SingleInstance();
2929

30-
// builder.Update(Conversation.Container);
3130
// });
3231

3332
GlobalConfiguration.Configure(WebApiConfig.Register);

CSharp/Samples/SimpleEchoBot/Global.asax.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,13 @@ protected void Application_Start()
2020
// // Uncomment one of the lines below to choose your store
2121
// // var store = new TableBotDataStore("...DataStorageConnectionString..."); // requires Microsoft.BotBuilder.Azure Nuget package
2222
// // var store = new DocumentDbBotDataStore("cosmos db uri", "cosmos db key"); // requires Microsoft.BotBuilder.Azure Nuget package
23-
// // var store = new InMemoryStore(); // volatile in-memory store
23+
// // var store = new InMemoryDataStore(); // volatile in-memory store
2424

2525
// builder.Register(c => store)
2626
// .Keyed<IBotDataStore<BotData>>(AzureModule.Key_DataStore)
2727
// .AsSelf()
2828
// .SingleInstance();
2929

30-
// builder.Update(Conversation.Container);
3130
// });
3231

3332
GlobalConfiguration.Configure(WebApiConfig.Register);

CSharp/Samples/SimpleFacebookAuthBot/Global.asax.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,13 @@ protected void Application_Start()
2020
// // Uncomment one of the lines below to choose your store
2121
// // var store = new TableBotDataStore("...DataStorageConnectionString..."); // requires Microsoft.BotBuilder.Azure Nuget package
2222
// // var store = new DocumentDbBotDataStore("cosmos db uri", "cosmos db key"); // requires Microsoft.BotBuilder.Azure Nuget package
23-
// // var store = new InMemoryStore(); // volatile in-memory store
23+
// // var store = new InMemoryDataStore(); // volatile in-memory store
2424

2525
// builder.Register(c => store)
2626
// .Keyed<IBotDataStore<BotData>>(AzureModule.Key_DataStore)
2727
// .AsSelf()
2828
// .SingleInstance();
2929

30-
// builder.Update(Conversation.Container);
3130
// });
3231

3332
GlobalConfiguration.Configure(WebApiConfig.Register);

CSharp/Samples/SimpleIVRBot/Global.asax.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,13 @@ protected void Application_Start()
2020
// // Uncomment one of the lines below to choose your store
2121
// // var store = new TableBotDataStore("...DataStorageConnectionString..."); // requires Microsoft.BotBuilder.Azure Nuget package
2222
// // var store = new DocumentDbBotDataStore("cosmos db uri", "cosmos db key"); // requires Microsoft.BotBuilder.Azure Nuget package
23-
// // var store = new InMemoryStore(); // volatile in-memory store
23+
// // var store = new InMemoryDataStore(); // volatile in-memory store
2424

2525
// builder.Register(c => store)
2626
// .Keyed<IBotDataStore<BotData>>(AzureModule.Key_DataStore)
2727
// .AsSelf()
2828
// .SingleInstance();
2929

30-
// builder.Update(Conversation.Container);
3130
// });
3231

3332

CSharp/Samples/SimpleSandwichBot/Global.asax.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,13 @@ protected void Application_Start()
2020
// // Uncomment one of the lines below to choose your store
2121
// // var store = new TableBotDataStore("...DataStorageConnectionString..."); // requires Microsoft.BotBuilder.Azure Nuget package
2222
// // var store = new DocumentDbBotDataStore("cosmos db uri", "cosmos db key"); // requires Microsoft.BotBuilder.Azure Nuget package
23-
// // var store = new InMemoryStore(); // volatile in-memory store
23+
// // var store = new InMemoryDataStore(); // volatile in-memory store
2424

2525
// builder.Register(c => store)
2626
// .Keyed<IBotDataStore<BotData>>(AzureModule.Key_DataStore)
2727
// .AsSelf()
2828
// .SingleInstance();
2929

30-
// builder.Update(Conversation.Container);
3130
// });
3231

3332
GlobalConfiguration.Configure(WebApiConfig.Register);

CSharp/Samples/TemplateBot/Global.asax.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,13 @@ protected void Application_Start()
1919
// // Uncomment one of the lines below to choose your store
2020
// // var store = new TableBotDataStore("...DataStorageConnectionString..."); // requires Microsoft.BotBuilder.Azure Nuget package
2121
// // var store = new DocumentDbBotDataStore("cosmos db uri", "cosmos db key"); // requires Microsoft.BotBuilder.Azure Nuget package
22-
// // var store = new InMemoryStore(); // volatile in-memory store
22+
// // var store = new InMemoryDataStore(); // volatile in-memory store
2323

2424
// builder.Register(c => store)
2525
// .Keyed<IBotDataStore<BotData>>(AzureModule.Key_DataStore)
2626
// .AsSelf()
2727
// .SingleInstance();
2828

29-
// builder.Update(Conversation.Container);
3029
// });
3130

3231
GlobalConfiguration.Configure(WebApiConfig.Register);

0 commit comments

Comments
 (0)