Пример #1
0
 internal GetIntentsPaginator(IAmazonLexModelBuildingService client, GetIntentsRequest request)
 {
     this._client  = client;
     this._request = request;
 }
 private Amazon.LexModelBuildingService.Model.PutIntentResponse CallAWSServiceOperation(IAmazonLexModelBuildingService client, Amazon.LexModelBuildingService.Model.PutIntentRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon Lex Model Building Service", "PutIntent");
     try
     {
         #if DESKTOP
         return(client.PutIntent(request));
         #elif CORECLR
         return(client.PutIntentAsync(request).GetAwaiter().GetResult());
         #else
                 #error "Unknown build edition"
         #endif
     }
     catch (AmazonServiceException exc)
     {
         var webException = exc.InnerException as System.Net.WebException;
         if (webException != null)
         {
             throw new Exception(Utils.Common.FormatNameResolutionFailureMessage(client.Config, webException.Message), webException);
         }
         throw;
     }
 }
Пример #3
0
 internal GetBuiltinSlotTypesPaginator(IAmazonLexModelBuildingService client, GetBuiltinSlotTypesRequest request)
 {
     this._client  = client;
     this._request = request;
 }
Пример #4
0
 internal LexModelBuildingServicePaginatorFactory(IAmazonLexModelBuildingService client)
 {
     this.client = client;
 }
Пример #5
0
 internal GetBotChannelAssociationsPaginator(IAmazonLexModelBuildingService client, GetBotChannelAssociationsRequest request)
 {
     this._client  = client;
     this._request = request;
 }
Пример #6
0
 public BaseLexBotDependencyProvider()
 {
     _lexBuildingClient = new AmazonLexModelBuildingServiceClient();
 }
        protected override void ProcessRecord()
        {
            base.ProcessRecord();

            Client = CreateClient(_CurrentCredentials, _RegionEndpoint);
        }