ApplicationBuilder<TState>.WithAuthentication Method
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.
Configures authentication for the application.
C#
public Microsoft.Teams.AI.ApplicationBuilder<TState> WithAuthentication (Microsoft.Bot.Builder.BotAdapter adapter, Microsoft.Teams.AI.AuthenticationOptions<TState> authenticationOptions);
member this.WithAuthentication : Microsoft.Bot.Builder.BotAdapter * Microsoft.Teams.AI.AuthenticationOptions<'State (requires 'State :> Microsoft.Teams.AI.State.TurnState and 'State :> Microsoft.Teams.AI.State.IMemory and 'State : (new : unit -> 'State))> -> Microsoft.Teams.AI.ApplicationBuilder<'State (requires 'State :> Microsoft.Teams.AI.State.TurnState and 'State :> Microsoft.Teams.AI.State.IMemory and 'State : (new : unit -> 'State))>
Public Function WithAuthentication (adapter As BotAdapter, authenticationOptions As AuthenticationOptions(Of TState)) As ApplicationBuilder(Of TState)
- adapter
- BotAdapter
The bot adapter.
- authenticationOptions
- AuthenticationOptions<TState>
The options for authentication.
The ApplicationBuilder instance.
Producto | Versiones |
---|---|
Microsoft Teams Framework .NET SDK | Latest |