Amazon.PowerShell.Cmdlets.WSDM.SearchWSDMContentCmdlet.CallAWSServiceOperation C# (CSharp) Method

CallAWSServiceOperation() private method

private CallAWSServiceOperation ( IAmazonConnectWisdomService client, Amazon.ConnectWisdomService.Model.SearchContentRequest request ) : Amazon.ConnectWisdomService.Model.SearchContentResponse
client IAmazonConnectWisdomService
request Amazon.ConnectWisdomService.Model.SearchContentRequest
return Amazon.ConnectWisdomService.Model.SearchContentResponse
        private Amazon.ConnectWisdomService.Model.SearchContentResponse CallAWSServiceOperation(IAmazonConnectWisdomService client, Amazon.ConnectWisdomService.Model.SearchContentRequest request)
        {
            Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon Connect Wisdom Service", "SearchContent");
            try
            {
                #if DESKTOP
                return client.SearchContent(request);
                #elif CORECLR
                return client.SearchContentAsync(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;
            }
        }