private async Task UpdateLexBot(PutBotRequest putBotRequest, string checksum = null) { if (checksum != null) { putBotRequest.Checksum = checksum; } await PutLexBot(putBotRequest); }
private Task CreateBotAsync(CancellationToken cancellationToken) { // Create a new bot with the given name var putBotRequest = new PutBotRequest { Name = this.LexBotName, ChildDirected = false, CreateVersion = true, Locale = Locale.EnUS, ProcessBehavior = ProcessBehavior.BUILD, VoiceId = "0", }; Logger.LogTrace($"Creating bot '{this.LexBotName}'."); return(this.LexClient.PutBotAsync(putBotRequest, cancellationToken)); }
private async Task PutLexBot(PutBotRequest putBotRequest) { await _provider.PutBotAsync(putBotRequest); }
Task <PutBotResponse> ILexBotGeneratorDependencyProvider.PutBotAsync(PutBotRequest request) => _lexBuildingClient.PutBotAsync(request);
public Task PutBotAsync(PutBotRequest request, CancellationToken cancellationToken) { return(RetryAsync(this.AmazonLexModelClient.PutBotAsync, request, cancellationToken)); }
public Task PutBotAsync(PutBotRequest request, CancellationToken cancellationToken) { return(this.ProcessRequestAsync(request)); }