File tree 4 files changed +4
-5
lines changed
BotFrameworkAccelerators/v16
SecuredWebChatControl/Controllers
4 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 1
1
# Bot Framework Accelerators
2
2
Development accelerators for the Microsoft Bot Framework
3
3
4
- ## [ Secured Web Chat Control] ( SecuredWebChatControl/README.md )
4
+ ## [ Secured Web Chat Control] ( SecuredWebChatControl )
5
5
Shows how to embed a Web Chat control on a web page without exposing the bot secret
Original file line number Diff line number Diff line change 7
7
using Microsoft . AspNetCore . Mvc ;
8
8
using Microsoft . Extensions . Configuration ;
9
9
using Microsoft . IdentityModel . Protocols ;
10
- using MyFirstVirtualAssistantRHW . Services ;
11
10
using Newtonsoft . Json ;
12
11
using Newtonsoft . Json . Linq ;
13
12
19
18
* dependency injection by adding the follwing line of code to the Startup.cs file
20
19
* somewhere in the ConfigureServices() method:
21
20
* services.AddSingleton<HttpClient>(new HttpClient());
22
- * 2) This code expects that to get the Bot Secret from the appsettings.cs file so
23
- * you'll need to add the following setting to the appsettings.cs file:
21
+ * 2) This code expects that to get the Bot Secret from the appsettings.json file so
22
+ * you'll need to add the following setting to the appsettings.json file:
24
23
* "directLineSecret": "<YourDirectLineSecret>",
25
24
* 3) Go to the Azure portal and enable the Direct Line channel and copy the Secret Key
26
25
* and paste it in as the value of the directLineSecret setting that you created in
27
26
* the previous step.
28
27
* ----------------------------------------------------------------------------------
29
28
*/
30
- namespace MyFirstVirtualAssistantRHW . Controllers
29
+ namespace SecuredWebChatConrol . Controllers
31
30
{
32
31
[ Route ( "api/[controller]" ) ]
33
32
[ ApiController ]
You can’t perform that action at this time.
0 commit comments