Table of Contents

Class BlockchainStateDbRepository

Namespace
NLightning.Infrastructure.Repositories.Database.Bitcoin
Assembly
NLightning.Infrastructure.Repositories.dll
public class BlockchainStateDbRepository : BaseDbRepository<BlockchainStateEntity>, IBlockchainStateDbRepository
Inheritance
BlockchainStateDbRepository
Implements
Inherited Members

Constructors

BlockchainStateDbRepository(NLightningDbContext)

public BlockchainStateDbRepository(NLightningDbContext context)

Parameters

context NLightningDbContext

Methods

Add(BlockchainState)

Adds a blockchain state object to the repository.

public void Add(BlockchainState blockchainState)

Parameters

blockchainState BlockchainState

The blockchain state to add.

GetStateAsync()

public Task<BlockchainState?> GetStateAsync()

Returns

Task<BlockchainState>

Update(BlockchainState)

Updates an existing blockchain state in the repository.

public void Update(BlockchainState blockchainState)

Parameters

blockchainState BlockchainState

The blockchain state to update.