Amazon.PowerShell.Cmdlets.OUTP.UpdateOUTPSiteAddressCmdlet.CallAWSServiceOperation C# (CSharp) Method

CallAWSServiceOperation() private method

private CallAWSServiceOperation ( IAmazonOutposts client, Amazon.Outposts.Model.UpdateSiteAddressRequest request ) : Amazon.Outposts.Model.UpdateSiteAddressResponse
client IAmazonOutposts
request Amazon.Outposts.Model.UpdateSiteAddressRequest
return Amazon.Outposts.Model.UpdateSiteAddressResponse
        private Amazon.Outposts.Model.UpdateSiteAddressResponse CallAWSServiceOperation(IAmazonOutposts client, Amazon.Outposts.Model.UpdateSiteAddressRequest request)
        {
            Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Outposts", "UpdateSiteAddress");
            try
            {
                #if DESKTOP
                return client.UpdateSiteAddress(request);
                #elif CORECLR
                return client.UpdateSiteAddressAsync(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;
            }
        }