Class SweeperService
public class SweeperService : IAsyncDisposable
- Inheritance
-
SweeperService
- Implements
- Inherited Members
Constructors
SweeperService(IEnumerable<ISweepPolicy>, IVtxoStorage, ICoinService, IContractStorage, ISpendingService, IIntentStorage, IOptions<SweeperServiceOptions>, IBitcoinBlockchain, IEnumerable<IEventHandler<PostSweepActionEvent>>, ILogger<SweeperService>?)
public SweeperService(IEnumerable<ISweepPolicy> policies, IVtxoStorage vtxoStorage, ICoinService coinService, IContractStorage contractStorage, ISpendingService spendingService, IIntentStorage intentStorage, IOptions<SweeperServiceOptions> options, IBitcoinBlockchain chainTimeProvider, IEnumerable<IEventHandler<PostSweepActionEvent>> postSweepHandlers, ILogger<SweeperService>? logger = null)
Parameters
policiesIEnumerable<ISweepPolicy>vtxoStorageIVtxoStoragecoinServiceICoinServicecontractStorageIContractStoragespendingServiceISpendingServiceintentStorageIIntentStorageoptionsIOptions<SweeperServiceOptions>chainTimeProviderIBitcoinBlockchainpostSweepHandlersIEnumerable<IEventHandler<PostSweepActionEvent>>loggerILogger<SweeperService>
Methods
DisposeAsync()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.
public ValueTask DisposeAsync()
Returns
- ValueTask
A task that represents the asynchronous dispose operation.
StartAsync(CancellationToken)
public Task StartAsync(CancellationToken cancellationToken)
Parameters
cancellationTokenCancellationToken