Amazon.Redshift.AmazonRedshiftClient.CreateSnapshotCopyGrantAsync C# (CSharp) Метод

CreateSnapshotCopyGrantAsync() публичный Метод

Initiates the asynchronous execution of the CreateSnapshotCopyGrant operation.
public CreateSnapshotCopyGrantAsync ( CreateSnapshotCopyGrantRequest request, System cancellationToken = default(CancellationToken) ) : Task
request Amazon.Redshift.Model.CreateSnapshotCopyGrantRequest Container for the necessary parameters to execute the CreateSnapshotCopyGrant operation.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
Результат Task
        public Task<CreateSnapshotCopyGrantResponse> CreateSnapshotCopyGrantAsync(CreateSnapshotCopyGrantRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller = new CreateSnapshotCopyGrantRequestMarshaller();
            var unmarshaller = CreateSnapshotCopyGrantResponseUnmarshaller.Instance;

            return InvokeAsync<CreateSnapshotCopyGrantRequest,CreateSnapshotCopyGrantResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }
AmazonRedshiftClient