Microsoft.Bot.Builder.Azure.BotService Class Reference

The azure bot service. More...

Static Public Member Functions

static async Task AuthenticateAsync (HttpRequestMessage request, IEnumerable< Activity > activities, CancellationToken token=default(CancellationToken))
 Authenticate the request and add the service url in the activities to MicrosoftAppCredentials.TrustedHostNames. More...
 
static BotServiceScope Initialize (Assembly assembly=null)
 Initialize bot service by updating the Conversation.Container with AzureModule. More...
 

Static Public Attributes

static BotAuthenticator Authenticator => authenticator.Value
 The bot authenticator. More...
 

Detailed Description

The azure bot service.

Definition at line 51 of file BotService.cs.

Member Function Documentation

static async Task Microsoft.Bot.Builder.Azure.BotService.AuthenticateAsync ( HttpRequestMessage  request,
IEnumerable< Activity activities,
CancellationToken  token = default(CancellationToken) 
)
inlinestatic

Authenticate the request and add the service url in the activities to MicrosoftAppCredentials.TrustedHostNames.

Parameters
requestThe incoming request.
activitiesThe incoming activities.
tokenThe cancellation token

Definition at line 81 of file BotService.cs.

static BotServiceScope Microsoft.Bot.Builder.Azure.BotService.Initialize ( Assembly  assembly = null)
inlinestatic

Initialize bot service by updating the Conversation.Container with AzureModule.

Parameters
assemblyThe assembly that should be resolved.
Returns
The BotServiceScope that should be disposed when bot service operation is done for the request.

Definition at line 63 of file BotService.cs.

Member Data Documentation

BotAuthenticator Microsoft.Bot.Builder.Azure.BotService.Authenticator => authenticator.Value
static

The bot authenticator.

Definition at line 56 of file BotService.cs.


The documentation for this class was generated from the following file: