Share via


JsonRpcEnumerableSettings Class

Definition

Provides customizations on performance characteristics of an IAsyncEnumerable<T> that is passed over JSON-RPC.

public class JsonRpcEnumerableSettings
type JsonRpcEnumerableSettings = class
Public Class JsonRpcEnumerableSettings
Inheritance
JsonRpcEnumerableSettings

Constructors

JsonRpcEnumerableSettings()

Properties

MaxReadAhead

Gets or sets the maximum number of elements to read ahead and cache from the generator in anticipation of the consumer requesting those values.

MinBatchSize

Gets or sets the minimum number of elements to obtain from the generator before sending a batch of values to the consumer.

Prefetch

Gets or sets the number of elements that should be precomputed and provided in the initial JSON-RPC message so the receiving party does not neet to request the initial few elements.

Applies to