public sealed class SignedUrlResumableUpload : ResumableUpload
Class which can perform a resumable upload using a signed URL to initiate the session.
Inheritance
System.Object > Google.Apis.Upload.ResumableUpload > SignedUrlResumableUploadNamespace
Google.Cloud.Storage.V1Assembly
Google.Cloud.Storage.V1.dll
Methods
Create(String, Stream, ResumableUploadOptions)
public static SignedUrlResumableUpload Create(string signedUrl, Stream contentStream, ResumableUploadOptions options = null)
Creates a SignedUrlResumableUpload instance.
Parameters | |
---|---|
Name | Description |
signedUrl | System.String The signed URL which can be used to initiate a resumable upload session. See ResumableHttpMethod for more information. |
contentStream | System.IO.Stream The data to be uploaded. |
options | Google.Apis.Upload.ResumableUploadOptions The options for the upload operation. |
Returns | |
---|---|
Type | Description |
SignedUrlResumableUpload | The instance which can be used to upload the specified content. |
InitiateSession(String, ResumableUploadOptions)
public static Uri InitiateSession(string signedUrl, ResumableUploadOptions options = null)
Initiates the resumable upload session by posting to the signed URL and returns the session URI.
Parameters | |
---|---|
Name | Description |
signedUrl | System.String The signed URL which can be used to initiate a resumable upload session. See ResumableHttpMethod for more information. |
options | Google.Apis.Upload.ResumableUploadOptions The options for the upload operation. |
Returns | |
---|---|
Type | Description |
System.Uri | The session URI to use for the resumable upload. |
InitiateSessionAsync(String, ResumableUploadOptions, CancellationToken)
public static Task<Uri> InitiateSessionAsync(string signedUrl, ResumableUploadOptions options = null, CancellationToken cancellationToken = default(CancellationToken))
Initiates the resumable upload session by posting to the signed URL and returns the session URI.
Parameters | |
---|---|
Name | Description |
signedUrl | System.String The signed URL which can be used to initiate a resumable upload session. See ResumableHttpMethod for more information. |
options | Google.Apis.Upload.ResumableUploadOptions The options for the upload operation. |
cancellationToken | System.Threading.CancellationToken The token to monitor for cancellation requests. |
Returns | |
---|---|
Type | Description |
System.Threading.Tasks.Task<System.Uri> | A task containing the session URI to use for the resumable upload. |
InitiateSessionAsync(CancellationToken)
public override Task<Uri> InitiateSessionAsync(CancellationToken cancellationToken)
Parameter | |
---|---|
Name | Description |
cancellationToken | System.Threading.CancellationToken |
Returns | |
---|---|
Type | Description |
System.Threading.Tasks.Task<System.Uri> |