示例#1
0
 private async Task CompleteJobAsync(BotAdapter adapter, string botId, JobStorage jobStorage,
                                     UiPathJobResponse uiPathJobResponse,
                                     CancellationToken cancellationToken)
 {
     jobStorage.TryGetValue(uiPathJobResponse.JobId, out var jobInfo);
     if (jobInfo != null)
     {
         await adapter.ContinueConversationAsync(botId, jobInfo.ConversationReference,
                                                 CompleteJobHandler(uiPathJobResponse),
                                                 cancellationToken);
     }
 }