OwinResponse.WriteAsync Method

Definition

Overloads

WriteAsync(Byte[])

Asynchronously writes the given bytes to the response body stream.

WriteAsync(String)

Asynchronously writes the given text to the response body stream using UTF-8.

WriteAsync(Byte[], CancellationToken)

Asynchronously writes the given bytes to the response body stream.

WriteAsync(String, CancellationToken)

Asynchronously writes the given text to the response body stream using UTF-8.

WriteAsync(Byte[], Int32, Int32, CancellationToken)

Asynchronously writes the given bytes to the response body stream.

WriteAsync(Byte[])

Source:
OwinResponse.cs

Asynchronously writes the given bytes to the response body stream.

public virtual System.Threading.Tasks.Task WriteAsync (byte[] data);
abstract member WriteAsync : byte[] -> System.Threading.Tasks.Task
override this.WriteAsync : byte[] -> System.Threading.Tasks.Task
Public Overridable Function WriteAsync (data As Byte()) As Task

Parameters

data
Byte[]

The response data.

Returns

A Task tracking the state of the write operation.

Implements

Applies to

WriteAsync(String)

Source:
OwinResponse.cs

Asynchronously writes the given text to the response body stream using UTF-8.

public virtual System.Threading.Tasks.Task WriteAsync (string text);
abstract member WriteAsync : string -> System.Threading.Tasks.Task
override this.WriteAsync : string -> System.Threading.Tasks.Task
Public Overridable Function WriteAsync (text As String) As Task

Parameters

text
String

The response data.

Returns

A Task tracking the state of the write operation.

Implements

Applies to

WriteAsync(Byte[], CancellationToken)

Source:
OwinResponse.cs

Asynchronously writes the given bytes to the response body stream.

public virtual System.Threading.Tasks.Task WriteAsync (byte[] data, System.Threading.CancellationToken token);
abstract member WriteAsync : byte[] * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.WriteAsync : byte[] * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function WriteAsync (data As Byte(), token As CancellationToken) As Task

Parameters

data
Byte[]

The response data.

token
CancellationToken

A token used to indicate cancellation.

Returns

A Task tracking the state of the write operation.

Implements

Applies to

WriteAsync(String, CancellationToken)

Source:
OwinResponse.cs

Asynchronously writes the given text to the response body stream using UTF-8.

public virtual System.Threading.Tasks.Task WriteAsync (string text, System.Threading.CancellationToken token);
abstract member WriteAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.WriteAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function WriteAsync (text As String, token As CancellationToken) As Task

Parameters

text
String

The response data.

token
CancellationToken

A token used to indicate cancellation.

Returns

A Task tracking the state of the write operation.

Implements

Applies to

WriteAsync(Byte[], Int32, Int32, CancellationToken)

Source:
OwinResponse.cs

Asynchronously writes the given bytes to the response body stream.

public virtual System.Threading.Tasks.Task WriteAsync (byte[] data, int offset, int count, System.Threading.CancellationToken token);
abstract member WriteAsync : byte[] * int * int * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.WriteAsync : byte[] * int * int * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function WriteAsync (data As Byte(), offset As Integer, count As Integer, token As CancellationToken) As Task

Parameters

data
Byte[]

The response data.

offset
Int32

The zero-based byte offset in the data parameter at which to begin copying bytes.

count
Int32

The number of bytes to write.

token
CancellationToken

A token used to indicate cancellation.

Returns

A Task tracking the state of the write operation.

Implements

Applies to