Skip to content

ReadRequest Methods

Represents a read operation submitted to a MessageTransport.

OnCanceled

abstract
public abstract void OnCanceled()
Completes the request because the transport was canceled or closed.

OnError(Exception)

abstract
public abstract void OnError(Exception error)
Completes the request with an error.

Parameters

errorException
The error which terminated the read.

OnRead(ArcBufferReader)

abstract
public abstract bool OnRead(ArcBufferReader buffer)
Consumes available input for this request.

Parameters

bufferArcBufferReader
The available input. Implementations advance this reader as bytes are consumed.

Returns

true when the request is complete; otherwise, false to await more input.