Language

TeamsBotApplicationHostingExtensions.UseTeams Method

Definition

Caution

UseTeams is a backward-compatibility shim for the old library and will be removed. Use UseTeamsBotApplication instead.

[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

Applies to