Table of Contents

Interface IIO

Namespace
Selenium.WebDriver.BiDi.Cdp.IO
Assembly
Selenium.WebDriver.BiDi.Cdp.dll

Input/Output operations for streams produced by DevTools.

public interface IIO

Methods

CloseAsync(StreamHandle, string?, CancellationToken)

Close the stream, discard any temporary backing storage.

Task<CloseResult> CloseAsync(StreamHandle handle, string? session = null, CancellationToken cancellationToken = default)

Parameters

handle StreamHandle

Handle of the stream to close.

session string

Optional CDP session override.

cancellationToken CancellationToken

A token to cancel the asynchronous operation.

Returns

Task<CloseResult>

A task representing the asynchronous operation, containing a CloseResult.

ReadAsync(StreamHandle, long?, long?, string?, CancellationToken)

Read a chunk of the stream

Task<ReadResult> ReadAsync(StreamHandle handle, long? offset = null, long? size = null, string? session = null, CancellationToken cancellationToken = default)

Parameters

handle StreamHandle

Handle of the stream to read.

offset long?

Seek to the specified offset before reading (if not specified, proceed with offset following the last read). Some types of streams may only support sequential reads.

size long?

Maximum number of bytes to read (left upon the agent discretion if not specified).

session string

Optional CDP session override.

cancellationToken CancellationToken

A token to cancel the asynchronous operation.

Returns

Task<ReadResult>

A task representing the asynchronous operation, containing a ReadResult.

ResolveBlobAsync(RemoteObjectId, string?, CancellationToken)

Return UUID of Blob object specified by a remote object id.

Task<ResolveBlobResult> ResolveBlobAsync(RemoteObjectId objectId, string? session = null, CancellationToken cancellationToken = default)

Parameters

objectId RemoteObjectId

Object id of a Blob object wrapper.

session string

Optional CDP session override.

cancellationToken CancellationToken

A token to cancel the asynchronous operation.

Returns

Task<ResolveBlobResult>

A task representing the asynchronous operation, containing a ResolveBlobResult.