Class ResumableUploadOptions
Options for ResumableUpload operations.
Inheritance
System.Object
ResumableUploadOptions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.Upload
Assembly: Google.Apis.dll
Syntax
public sealed class ResumableUploadOptions
Properties
HttpClient
Gets or sets the HTTP client to use when starting the upload sessions and uploading data.
Declaration
public HttpClient HttpClient { get; set; }
Property Value
Type | Description |
---|---|
System.Net.Http.HttpClient |
ModifySessionInitiationRequest
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.
Declaration
public Action<HttpRequestMessage> ModifySessionInitiationRequest { get; set; }
Property Value
Type | Description |
---|---|
System.Action<System.Net.Http.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
Gets or sets the serializer to use when parsing error responses.
Declaration
public ISerializer Serializer { get; set; }
Property Value
Type | Description |
---|---|
Google.Apis.ISerializer |
ServiceName
Gets or sets the name of the service performing the upload.
Declaration
public string ServiceName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
This will be used to set the ServiceName in the event of an error.