Show / Hide Table of Contents

Class IndexedActionLoader

An IActionLoader implementation for dispatching multiple IActionLoaders.

Inheritance
System.Object
IndexedActionLoader
Implements
IActionLoader
Namespace: Libplanet.Action.Loader
Assembly: Libplanet.Action.dll
Syntax
public class IndexedActionLoader : object, IActionLoader

Constructors

| Improve this Doc View Source

IndexedActionLoader(IReadOnlyList<(Int64 StartIndex, IActionLoader Loader)>)

Creates an IndexedActionLoader instance.

Declaration
public IndexedActionLoader(IReadOnlyList<(long StartIndex, IActionLoader Loader)> loaders)
Parameters
Type Name Description
IReadOnlyList<System.ValueTuple<System.Int64, IActionLoader>> loaders

A list of inner IActionLoaders to use.

Methods

| Improve this Doc View Source

LoadAction(Int64, IValue)

Loads a concrete IAction from value given index.

Declaration
public IAction LoadAction(long index, IValue value)
Parameters
Type Name Description
System.Int64 index

The index of a block to use as context for deserializing value.

IValue value

The to deserialize to an IAction.

Returns
Type Description
IAction

An IAction instantiated with value.

Exceptions
Type Condition
InvalidActionException

Thrown when an IAction cannot be instantiated with given index and value.

Implements

IActionLoader
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2023 Planetarium