Table of Contents

Class ReportUnitStateList

Namespace
Cryville.EEW.Report
Assembly
Cryville.EEW.dll
A utility list that caches the states of the report units.
public class ReportUnitStateList
Inheritance
ReportUnitStateList
Inherited Members

Properties

Timeout

The maximum time for the report units to stay alive in the list.
public TimeSpan Timeout { get; set; }

Property Value

TimeSpan

Methods

Invalidate(string)

Manually remove a report unit from the list.
public bool Invalidate(string id)

Parameters

id string
The ID of the report unit.

Returns

bool
Whether the report unit is removed successfully.

Push(string, ReadOnlySpan<int>)

Pushes the states of a report unit into the list.
public PushResult Push(string id, ReadOnlySpan<int> state)

Parameters

id string
The ID of the report unit.
state ReadOnlySpan<int>
The states.

Returns

PushResult
The result of the push.

Exceptions

ArgumentException
The length of state mismatches with the length of the states pushed last time.