public sealed class ResumableUploadOptions
Options for ResumableUpload operations.
Namespace
Google.Apis.UploadAssembly
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
ActionHttpRequestMessage |
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 | |
---|---|
Type | Description |
ISerializer |
ServiceName
public string ServiceName { get; set; }
Gets or sets the name of the service performing the upload.
Property Value | |
---|---|
Type | Description |
string |
This will be used to set the ServiceName in the event of an error.