ConversationsExtensions.CreateDirectConversationAsync Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
CreateDirectConversationAsync(IConversations, ChannelAccount, ChannelAccount, Activity, CancellationToken) | |
CreateDirectConversationAsync(IConversations, ChannelAccount, ChannelAccount, Activity, CancellationToken) |
Creare una nuova conversazione diretta tra un bot e un utente. |
CreateDirectConversationAsync(IConversations, String, String, Activity, CancellationToken) | |
CreateDirectConversationAsync(IConversations, String, String, Activity, CancellationToken) |
Creare una nuova conversazione diretta tra un bot e un utente. |
CreateDirectConversationAsync(IConversations, ChannelAccount, ChannelAccount, Activity, CancellationToken)
public static System.Threading.Tasks.Task<Microsoft.Bot.Connector.ConversationResourceResponse> CreateDirectConversationAsync (this Microsoft.Bot.Connector.IConversations operations, Microsoft.Bot.Connector.ChannelAccount bot, Microsoft.Bot.Connector.ChannelAccount user, Microsoft.Bot.Connector.Activity activity = default, System.Threading.CancellationToken cancellationToken = default);
static member CreateDirectConversationAsync : Microsoft.Bot.Connector.IConversations * Microsoft.Bot.Connector.ChannelAccount * Microsoft.Bot.Connector.ChannelAccount * Microsoft.Bot.Connector.Activity * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Connector.ConversationResourceResponse>
<Extension()>
Public Function CreateDirectConversationAsync (operations As IConversations, bot As ChannelAccount, user As ChannelAccount, Optional activity As Activity = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ConversationResourceResponse)
Parametri
- operations
- IConversations
- bot
- ChannelAccount
- user
- ChannelAccount
- activity
- Activity
- cancellationToken
- CancellationToken
Restituisce
Si applica a
CreateDirectConversationAsync(IConversations, ChannelAccount, ChannelAccount, Activity, CancellationToken)
Creare una nuova conversazione diretta tra un bot e un utente.
public static System.Threading.Tasks.Task<Microsoft.Bot.Schema.ConversationResourceResponse> CreateDirectConversationAsync (this Microsoft.Bot.Connector.IConversations operations, Microsoft.Bot.Schema.ChannelAccount bot, Microsoft.Bot.Schema.ChannelAccount user, Microsoft.Bot.Schema.Activity activity = default, System.Threading.CancellationToken cancellationToken = default);
static member CreateDirectConversationAsync : Microsoft.Bot.Connector.IConversations * Microsoft.Bot.Schema.ChannelAccount * Microsoft.Bot.Schema.ChannelAccount * Microsoft.Bot.Schema.Activity * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.ConversationResourceResponse>
<Extension()>
Public Function CreateDirectConversationAsync (operations As IConversations, bot As ChannelAccount, user As ChannelAccount, Optional activity As Activity = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ConversationResourceResponse)
Parametri
- operations
- IConversations
Gruppo di operazioni per questo metodo di estensione.
- bot
- ChannelAccount
Bot da cui creare una conversazione.
- user
- ChannelAccount
Utente con cui creare una conversazione.
- activity
- Activity
(FACOLTATIVO) messaggio iniziale da inviare alla nuova conversazione.
- cancellationToken
- CancellationToken
Token di annullamento.
Restituisce
Task che rappresenta l'operazione asincrona.
Si applica a
CreateDirectConversationAsync(IConversations, String, String, Activity, CancellationToken)
public static System.Threading.Tasks.Task<Microsoft.Bot.Connector.ConversationResourceResponse> CreateDirectConversationAsync (this Microsoft.Bot.Connector.IConversations operations, string botAddress, string userAddress, Microsoft.Bot.Connector.Activity activity = default, System.Threading.CancellationToken cancellationToken = default);
static member CreateDirectConversationAsync : Microsoft.Bot.Connector.IConversations * string * string * Microsoft.Bot.Connector.Activity * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Connector.ConversationResourceResponse>
<Extension()>
Public Function CreateDirectConversationAsync (operations As IConversations, botAddress As String, userAddress As String, Optional activity As Activity = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ConversationResourceResponse)
Parametri
- operations
- IConversations
- botAddress
- String
- userAddress
- String
- activity
- Activity
- cancellationToken
- CancellationToken
Restituisce
Si applica a
CreateDirectConversationAsync(IConversations, String, String, Activity, CancellationToken)
Creare una nuova conversazione diretta tra un bot e un utente.
public static System.Threading.Tasks.Task<Microsoft.Bot.Schema.ConversationResourceResponse> CreateDirectConversationAsync (this Microsoft.Bot.Connector.IConversations operations, string botAddress, string userAddress, Microsoft.Bot.Schema.Activity activity = default, System.Threading.CancellationToken cancellationToken = default);
static member CreateDirectConversationAsync : Microsoft.Bot.Connector.IConversations * string * string * Microsoft.Bot.Schema.Activity * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.ConversationResourceResponse>
<Extension()>
Public Function CreateDirectConversationAsync (operations As IConversations, botAddress As String, userAddress As String, Optional activity As Activity = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ConversationResourceResponse)
Parametri
- operations
- IConversations
Gruppo di operazioni per questo metodo di estensione.
- botAddress
- String
Bot da cui creare una conversazione.
- userAddress
- String
Utente con cui creare una conversazione.
- activity
- Activity
(FACOLTATIVO) messaggio iniziale da inviare alla nuova conversazione.
- cancellationToken
- CancellationToken
Token di annullamento.
Restituisce
Task che rappresenta l'operazione asincrona.