Show / Hide Table of Contents

Interface IOperatorStateReader

Represents an operator state reader.

Namespace: Reaqtive
Assembly: Reaqtive.Interfaces.dll
Syntax
public interface IOperatorStateReader : IDisposable

Methods

CreateChild()

Creates a child state reader.

Declaration
IOperatorStateReader CreateChild()
Returns
Type Description
IOperatorStateReader

Child state reader.

Read<T>()

Reads a value of the provided type.

Declaration
T Read<T>()
Returns
Type Description
T

The value of the element.

Type Parameters
Name Description
T

The expected type of the element to retrieve.

Remarks

Note that reading must be done in the same sequential order as the writing.

Reset()

Reset the operator state reader.

Declaration
void Reset()

TryRead<T>(out T)

Try to read the next value of the provided type.

Declaration
bool TryRead<T>(out T value)
Parameters
Type Name Description
T value

The value.

Returns
Type Description
System.Boolean

true if a value is read; otherwise, false.

Type Parameters
Name Description
T

The expected type of the element to retrieve.

Extension Methods

StateManager.LoadState(IOperatorStateReader, IStatefulOperator)
StateManager.LoadVersionInfo(IOperatorStateReader, IVersioned)
In This Article
Back to top Generated by DocFX