Condividi tramite


SkillHttpClient class

BotFrameworkHttpClient specializzato per competenze che incapsula la generazione dell'ID conversazione.

Extends

Costruttori

SkillHttpClient(ICredentialProvider, SkillConversationIdFactoryBase, string)

Crea una nuova istanza della classe SkillHttpClient .

Metodi

postToSkill(string, BotFrameworkSkill, string, Activity)

Usa SkillConversationIdFactory per creare o recuperare un ID conversazione competenza e invia l'attività.

postToSkill<T>(string, string, BotFrameworkSkill, string, Activity)

Usa SkillConversationIdFactory per creare o recuperare un ID conversazione competenza e invia l'attività.

Metodi ereditati

postActivity<T>(string, string, string, string, string, Activity)

Inoltra un'attività a un altro bot.

Dettagli costruttore

SkillHttpClient(ICredentialProvider, SkillConversationIdFactoryBase, string)

Crea una nuova istanza della classe SkillHttpClient .

new SkillHttpClient(credentialProvider: ICredentialProvider, conversationIdFactory: SkillConversationIdFactoryBase, channelService?: string)

Parametri

credentialProvider

ICredentialProvider

Istanza di ICredentialProvider.

conversationIdFactory

SkillConversationIdFactoryBase

Istanza di una classe derivata da SkillConversationIdFactoryBase.

channelService

string

Opzionale. Servizio di canale.

Dettagli metodo

postToSkill(string, BotFrameworkSkill, string, Activity)

Avviso

Questa API è ora deprecata.

This overload is deprecated. Please use SkillHttpClient.postToSkill() that takes an originatingAudience.

Usa SkillConversationIdFactory per creare o recuperare un ID conversazione competenza e invia l'attività.

function postToSkill(fromBotId: string, toSkill: BotFrameworkSkill, callbackUrl: string, activity: Activity): Promise<InvokeResponse>

Parametri

fromBotId

string

MicrosoftAppId del bot che invia l'attività.

toSkill

BotFrameworkSkill

Competenza per cui creare l'ID conversazione.

callbackUrl

string

URL di callback per l'host di competenze.

activity

Activity

Attività da inviare.

Restituisce

Promise<InvokeResponse>

postToSkill<T>(string, string, BotFrameworkSkill, string, Activity)

Usa SkillConversationIdFactory per creare o recuperare un ID conversazione competenza e invia l'attività.

function postToSkill<T>(originatingAudience: string, fromBotId: string, toSkill: BotFrameworkSkill, callbackUrl: string, activity: Activity): Promise<InvokeResponse<T>>

Parametri

originatingAudience

string

Ambito del gruppo di destinatari OAuth, usato durante il recupero del token. (id app bot o https://api.botframework.com.

fromBotId

string

MicrosoftAppId del bot che invia l'attività.

toSkill

BotFrameworkSkill

Competenza per cui creare l'ID conversazione.

callbackUrl

string

URL di callback per l'host di competenze.

activity

Activity

Attività da inviare.

Restituisce

Promise<InvokeResponse<T>>

Dettagli dei metodi ereditati

postActivity<T>(string, string, string, string, string, Activity)

Inoltra un'attività a un altro bot.

function postActivity<T>(fromBotId: string, toBotId: string, toUrl: string, serviceUrl: string, conversationId: string, activity: Activity): Promise<InvokeResponse<T>>

Parametri

fromBotId

string

MicrosoftAppId del bot che invia l'attività.

toBotId

string

MicrosoftAppId del bot che riceve l'attività.

toUrl

string

URL del bot che riceve l'attività.

serviceUrl

string

URL di callback per l'host di competenze.

conversationId

string

ID conversazione da usare per la conversazione con la competenza.

activity

Activity

Attività da inoltrare.

Restituisce

Promise<InvokeResponse<T>>

Promessa che rappresenta l'operazione asincrona.

Ereditato daBotFrameworkHttpClient.postActivity