Language

ISessionOutputBufferExtensions Class

Definition

Caution

This class is obsoleted in this android platform

Provides task-based extension methods for ISessionOutputBuffer.

[System.Obsolete("This class is obsoleted in this android platform")]
public static class ISessionOutputBufferExtensions
[<System.Obsolete("This class is obsoleted in this android platform")>]
type ISessionOutputBufferExtensions = class
Inheritance
ISessionOutputBufferExtensions
Attributes

Remarks

The .NET binding generator uses Task to run each corresponding blocking method on a thread-pool thread. These are not native asynchronous I/O operations, and the extension methods have no cancellation parameter. Task completion does not mean that buffered bytes have been flushed to the underlying stream. Await each task to observe completion or an exception from the blocking method.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Methods

Name Description
WriteAsync(ISessionOutputBuffer, Byte[], Int32, Int32)

Runs a blocking write of the specified part of a byte array on a thread-pool thread.

WriteAsync(ISessionOutputBuffer, Byte[])

Runs a blocking write of a byte array on a thread-pool thread.

WriteAsync(ISessionOutputBuffer, Int32)

Runs a blocking single-byte write on a thread-pool thread.

WriteLineAsync(ISessionOutputBuffer, CharArrayBuffer)

Runs a blocking write of a character buffer and a CRLF terminator on a thread-pool thread.

WriteLineAsync(ISessionOutputBuffer, String)

Runs a blocking write of a string and a CRLF terminator on a thread-pool thread.

Applies to