Add ability to overwrite endpoint URL via protocol handler
See original GitHub issueIn order to add a deep link to the emulator in the BotBuilder .NET Samples, there needs to be a way to accommodate the dynamically assigned localhost port that is given to the sample when it is running in VS [Code].
Ex.
The included .bot
file has an endpoint service that defaults to localhost:5000
for the endpoint. However, when the sample is run in Visual Studio, a port is dynamically assigned unless there is a specified config file or line in the sample setup that specifies a port of 5000. So the user will click the emulator deep link, open the emulator, and the emulator will read the bot file and try to connect to the endpoint service at localhost:5000
, even though Visual Studio is running the bot at localhost:39734
.
A solution to this is allowing an extra parameter to be passed via protocol URI that would allow the port or endpoint URL to be overridden.
Current:
bfemulator://bot.open?path={PATH_TO_BOT_FILE}
Proposed:
bfemulator://bot.open?path={PATH_TO_BOT_FILE}[ &port={PORT_OVERRIDE} | &url={URL_OVERRIDE} ]
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (8 by maintainers)
Top GitHub Comments
@cleemullins Picked up working on it today. Hopefully will have it in by the end of the week.
Closing with merge of PR.