AdlsClient.ConcurrentAppendAsync(String, Boolean, Byte[], Int32, Int32, CancellationToken) Method

Definition

Asynchronous API to perform concurrent append at server. The offset at which append will occur is determined by server. Asynchronous operation. It is highly recomended to call this api with data size less than equals 4MB. Backend gurantees 4MB atomic appends.

public virtual System.Threading.Tasks.Task ConcurrentAppendAsync (string path, bool autoCreate, byte[] dataBytes, int offset, int length, System.Threading.CancellationToken cancelToken = default);
abstract member ConcurrentAppendAsync : string * bool * byte[] * int * int * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.ConcurrentAppendAsync : string * bool * byte[] * int * int * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function ConcurrentAppendAsync (path As String, autoCreate As Boolean, dataBytes As Byte(), offset As Integer, length As Integer, Optional cancelToken As CancellationToken = Nothing) As Task

Parameters

path
System.String

Path of the file

autoCreate
System.Boolean
dataBytes
System.Byte[]

Array of bytes to write to the file

offset
System.Int32

Offset in the byte array

length
System.Int32

Number of bytes to write from the offset

cancelToken
System.Threading.CancellationToken

CancellationToken to cancel the request

Returns

System.Threading.Tasks.Task

Applies to