Class BoardingUtxoPollService
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
boardingUtxoSyncServiceBoardingUtxoSyncServiceloggerILogger<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
cancellationTokenCancellationTokenIndicates that the start process has been aborted.
Returns
StopAsync(CancellationToken)
Triggered when the application host is performing a graceful shutdown.
public Task StopAsync(CancellationToken cancellationToken)
Parameters
cancellationTokenCancellationTokenIndicates that the shutdown process should no longer be graceful.