Table of Contents

Class BoardingUtxoPollService

Namespace
NArk.Core.Services
Assembly
NArk.Core.dll

Periodically polls the Bitcoin blockchain for boarding UTXOs. Delegates to BoardingUtxoSyncService which exits early when no boarding contracts are registered.

public class BoardingUtxoPollService : IHostedService, IDisposable
Inheritance
BoardingUtxoPollService
Implements
Inherited Members

Constructors

BoardingUtxoPollService(BoardingUtxoSyncService, ILogger<BoardingUtxoPollService>?)

Periodically polls the Bitcoin blockchain for boarding UTXOs. Delegates to BoardingUtxoSyncService which exits early when no boarding contracts are registered.

public BoardingUtxoPollService(BoardingUtxoSyncService boardingUtxoSyncService, ILogger<BoardingUtxoPollService>? logger = null)

Parameters

boardingUtxoSyncService BoardingUtxoSyncService
logger ILogger<BoardingUtxoPollService>

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

StartAsync(CancellationToken)

Triggered when the application host is ready to start the service.

public Task StartAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

Indicates that the start process has been aborted.

Returns

Task

A Task that represents the asynchronous Start operation.

StopAsync(CancellationToken)

Triggered when the application host is performing a graceful shutdown.

public Task StopAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

Indicates that the shutdown process should no longer be graceful.

Returns

Task

A Task that represents the asynchronous Stop operation.