Show / Hide Table of Contents

    Class DeltaCache

    Inheritance
    System.Object
    DeltaCache
    Implements
    IDeltaCache
    System.IDisposable
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Catalyst.Core.Modules.Consensus.Deltas
    Assembly: Catalyst.Core.Modules.Consensus.dll
    Syntax
    public class DeltaCache : IDeltaCache, IDisposable

    Constructors

    | Improve this Doc View Source

    DeltaCache(IHashProvider, IMemoryCache, IDeltaDfsReader, IDeltaCacheChangeTokenProvider, ILogger)

    Declaration
    public DeltaCache(IHashProvider hashProvider, IMemoryCache memoryCache, IDeltaDfsReader dfsReader, IDeltaCacheChangeTokenProvider changeTokenProvider, ILogger logger)
    Parameters
    Type Name Description
    IHashProvider hashProvider
    IMemoryCache memoryCache
    IDeltaDfsReader dfsReader
    IDeltaCacheChangeTokenProvider changeTokenProvider
    ILogger logger

    Properties

    | Improve this Doc View Source

    GenesisAddress

    Declaration
    public string GenesisAddress { get; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    GenesisHash

    Declaration
    public MultiHash GenesisHash { get; set; }
    Property Value
    Type Description
    MultiHash

    Methods

    | Improve this Doc View Source

    AddLocalDelta(CandidateDeltaBroadcast, Delta)

    Declaration
    public void AddLocalDelta(CandidateDeltaBroadcast localCandidate, Delta delta)
    Parameters
    Type Name Description
    CandidateDeltaBroadcast localCandidate
    Delta delta
    | Improve this Doc View Source

    Dispose()

    Declaration
    public void Dispose()
    | Improve this Doc View Source

    Dispose(Boolean)

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing
    | Improve this Doc View Source

    GetLocalDeltaCacheKey(CandidateDeltaBroadcast)

    Declaration
    public static string GetLocalDeltaCacheKey(CandidateDeltaBroadcast candidate)
    Parameters
    Type Name Description
    CandidateDeltaBroadcast candidate
    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    TryGetLocalDelta(CandidateDeltaBroadcast, out Delta)

    Declaration
    public bool TryGetLocalDelta(CandidateDeltaBroadcast candidate, out Delta delta)
    Parameters
    Type Name Description
    CandidateDeltaBroadcast candidate
    Delta delta
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    TryGetOrAddConfirmedDelta(MultiHash, out Delta, CancellationToken)

    Declaration
    public bool TryGetOrAddConfirmedDelta(MultiHash hash, out Delta delta, CancellationToken cancellationToken = default(CancellationToken))
    Parameters
    Type Name Description
    MultiHash hash
    Delta delta
    System.Threading.CancellationToken cancellationToken
    Returns
    Type Description
    System.Boolean

    Implements

    IDeltaCache
    System.IDisposable
    • Improve this Doc
    • View Source
    Back to top Copyright © 2019 Catalyst Network