TeamsBotApplicationHostingExtensions.UseTeams Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
UseTeams is a backward-compatibility shim for the old library and will be removed. Use UseTeamsBotApplication instead.
Configures the default TeamsBotApplication. Alias for UseTeamsBotApplication(IEndpointRouteBuilder, String).
[System.Obsolete("UseTeams is a backward-compatibility shim for the old library and will be removed. Use UseTeamsBotApplication instead.")]
public static Microsoft.Teams.Apps.TeamsBotApplication UseTeams(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string routePath = "api/messages");
[<System.Obsolete("UseTeams is a backward-compatibility shim for the old library and will be removed. Use UseTeamsBotApplication instead.")>]
static member UseTeams : Microsoft.AspNetCore.Routing.IEndpointRouteBuilder * string -> Microsoft.Teams.Apps.TeamsBotApplication
<Extension()>
Public Function UseTeams (endpoints As IEndpointRouteBuilder, Optional routePath As String = "api/messages") As TeamsBotApplication
Parameters
- endpoints
- IEndpointRouteBuilder
The endpoint route builder.
- routePath
- String
The route path to listen on. Default is "api/messages".
Returns
The configured TeamsBotApplication instance.
- Attributes