-
Notifications
You must be signed in to change notification settings - Fork 377
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into julong/keyboardShortCut
- Loading branch information
Showing
234 changed files
with
20,283 additions
and
10,822 deletions.
There are no files selected for viewing
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
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
17 changes: 17 additions & 0 deletions
17
BotProject/Templates/CSharp/BotSettings/BlobStorageConfiguration.cs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
|
||
namespace Microsoft.Bot.Builder.ComposerBot.Json | ||
{ | ||
public class BlobStorageConfiguration | ||
{ | ||
public string ConnectionString { get; set; } | ||
|
||
public string Container { get; set; } | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
BotProject/Templates/CSharp/BotSettings/BotFeatureSettings.cs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
|
||
namespace Microsoft.Bot.Builder.ComposerBot.Json | ||
{ | ||
public class BotFeatureSettings | ||
{ | ||
// Use TelementryLoggerMiddleware | ||
public bool UseTelementryLoggerMiddleware { get; set; } | ||
|
||
// Use TranscriptLoggerMiddleware | ||
public bool UseTranscriptLoggerMiddleware { get; set; } | ||
|
||
// Use ShowTypingMiddleware | ||
public bool UseShowTypingMiddleware { get; set; } | ||
|
||
// Use InspectionMiddleware | ||
public bool UseInspectionMiddleware { get; set; } | ||
|
||
// Use CosmosDb for storage | ||
public bool UseCosmosDb { get; set; } | ||
} | ||
} |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,44 @@ | ||
## Bot Project | ||
## Bot Runtime | ||
Bot project is the launcher project for the bots written in declarative form (JSON), using the Composer, for the Bot Framework SDK. | ||
This same code is used by Composer to start the bot locally for testing. | ||
|
||
## Instructions for setting up the Bot Project runtime | ||
The Bot Project is a regular Bot Framework SDK V4 project. Before you can launch it from the emulator, you need to make sure you can run the bot. | ||
## Instructions for using and customizing the bot runtime | ||
|
||
Composer can be configured to use a customized copy of this runtime. | ||
A copy of it can be added to your project automatically by using the "runtime settings" page in Composer. | ||
|
||
The Bot Project is a regular Bot Framework SDK V4 project. You can modify the code of this project | ||
and continue to use it with Composer. | ||
|
||
* Add additional middleware | ||
* Customize the state storage system | ||
* Add custom dialog classes | ||
|
||
### Prerequisite: | ||
* Install .Netcore 3.1 | ||
|
||
### Commands: | ||
### Build: | ||
|
||
* from root folder | ||
* cd BotProject | ||
* cd Templates/CSharp | ||
* cd [my bot folder]/runtime | ||
* dotnet user-secrets init // init the user secret id | ||
* dotnet build // build | ||
|
||
|
||
### Run from Command line: | ||
* cd [my bot folder]/runtime | ||
* dotnet run // start the bot | ||
* It will start a web server and listening at http://localhost:3979. | ||
|
||
### Run with Composer | ||
|
||
Open your bot project in Composer. Navigate to the runtime settings tab. | ||
|
||
Set the path to runtime to the full path to your runtime code. Customize the start command as necessary. | ||
|
||
The "Start Bot" button will now use your customized runtime. | ||
|
||
Note: the application code must be built and ready to run before Composer can manage it. | ||
|
||
### Test bot | ||
* You can set you emulator to connect to http://localhost:3979/api/messages. | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# How to update the schema file | ||
|
||
## To point npm to nightly builds | ||
``` | ||
npm config set registry https://botbuilder.myget.org/F/botframework-cli/npm/ | ||
``` | ||
## To install BF tool: | ||
``` | ||
npm i -g @microsoft/botframework-cli | ||
``` | ||
## To install bf dialog plugin | ||
``` | ||
bf plugins:install @microsoft/bf-dialog | ||
``` | ||
## To update your application schema for your bot project | ||
``` | ||
update.cmd | ||
``` |
Oops, something went wrong.