This file contains hidden or 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
| #!/usr/bin/env pwsh | |
| # teams-dev.ps1 - CLI wrapper for teams-dev-functions.ps1 | |
| # Usage: teams-dev.ps1 <subcommand> [options] | |
| $ScriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path | |
| # Teams Development Functions for PowerShell | |
| # PowerShell equivalents of the custom shell functions for Teams app development | |
| function Create-Tunnel { | |
| <# |
This file contains hidden or 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
| [HttpPost("/api/messages")] | |
| public async Task<IResult> OnMessage() | |
| { | |
| // [PA POC] Handle reactive scenario w/ BotBuilder adapter. | |
| // [PA POC] For phased migration, BotBuilder adapter still used. | |
| HttpContext.Request.EnableBuffering(); | |
| var body = await new StreamReader(Request.Body).ReadToEndAsync(); | |
| Activity? activity = JsonSerializer.Deserialize<Activity>(body); |