private Amazon.EBS.Model.StartSnapshotResponse CallAWSServiceOperation(IAmazonEBS client, Amazon.EBS.Model.StartSnapshotRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon EBS", "StartSnapshot"); try { #if DESKTOP return(client.StartSnapshot(request)); #elif CORECLR return(client.StartSnapshotAsync(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; } }
internal EBSPaginatorFactory(IAmazonEBS client) { this.client = client; }
internal ListChangedBlocksPaginator(IAmazonEBS client, ListChangedBlocksRequest request) { this._client = client; this._request = request; }
protected override void ProcessRecord() { base.ProcessRecord(); Client = CreateClient(_CurrentCredentials, _RegionEndpoint); }