Show / Hide Table of Contents

Class BlockDemandTable<T>

Inheritance
Object
BlockDemandTable<T>
Namespace: Libplanet.Net
Assembly: Libplanet.Net.dll
Syntax
public class BlockDemandTable<T> : object where T : IAction, new()
Type Parameters
Name Description
T

Constructors

| Improve this Doc View Source

BlockDemandTable(TimeSpan)

Declaration
public BlockDemandTable(TimeSpan blockDemandLifespan)
Parameters
Type Name Description
TimeSpan blockDemandLifespan

Properties

| Improve this Doc View Source

Demands

Declaration
public IDictionary<BoundPeer, BlockDemand> Demands { get; }
Property Value
Type Description
IDictionary<BoundPeer, BlockDemand>

Methods

| Improve this Doc View Source

Add(BlockChain<T>, Func<IBlockExcerpt, Boolean>, BlockDemand)

Declaration
public void Add(BlockChain<T> blockChain, Func<IBlockExcerpt, bool> predicate, BlockDemand demand)
Parameters
Type Name Description
BlockChain<T> blockChain
Func<IBlockExcerpt, Boolean> predicate
BlockDemand demand
| Improve this Doc View Source

Any()

Declaration
public bool Any()
Returns
Type Description
Boolean
| Improve this Doc View Source

Cleanup(BlockChain<T>, Func<IBlockExcerpt, Boolean>)

Declaration
public void Cleanup(BlockChain<T> blockChain, Func<IBlockExcerpt, bool> predicate)
Parameters
Type Name Description
BlockChain<T> blockChain
Func<IBlockExcerpt, Boolean> predicate
| Improve this Doc View Source

Remove(BoundPeer)

Declaration
public void Remove(BoundPeer peer)
Parameters
Type Name Description
BoundPeer peer
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2022 Planetarium