Class ResumableUploadOptions (1.55.0)

public sealed class ResumableUploadOptions

Options for ResumableUpload operations.

Inheritance

Object > ResumableUploadOptions

Namespace

Google.Apis.Upload

Assembly

Google.Apis.dll

Properties

HttpClient

public HttpClient HttpClient { get; set; }

Gets or sets the HTTP client to use when starting the upload sessions and uploading data.

Property Value
TypeDescription
HttpClient

ModifySessionInitiationRequest

public Action<HttpRequestMessage> ModifySessionInitiationRequest { get; set; }

Gets or sets the callback for modifying the session initiation request. See https://cloud.google.com/storage/docs/json_api/v1/how-tos/resumable-upload#start-resumable for more information.

Property Value
TypeDescription
Action<HttpRequestMessage>
Remarks

Note: If these options are used with a ResumableUpload created using CreateFromUploadUri(Uri, Stream, ResumableUploadOptions), this property will be ignored as the session has already been initiated.

Serializer

public ISerializer Serializer { get; set; }

Gets or sets the serializer to use when parsing error responses.

Property Value
TypeDescription
ISerializer

ServiceName

public string ServiceName { get; set; }

Gets or sets the name of the service performing the upload.

Property Value
TypeDescription
String
Remarks

This will be used to set the ServiceName in the event of an error.

Extension Method