Share via


AdlsClient.ConcurrentAppendAsync 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
String

Path of the file

autoCreate
Boolean
dataBytes
Byte[]

Array of bytes to write to the file

offset
Int32

Offset in the byte array

length
Int32

Number of bytes to write from the offset

cancelToken
CancellationToken

CancellationToken to cancel the request

Returns

Applies to