Table of Contents

Class SweeperService

Namespace
NArk.Core.Services
Assembly
NArk.Core.dll
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

policies IEnumerable<ISweepPolicy>
vtxoStorage IVtxoStorage
coinService ICoinService
contractStorage IContractStorage
spendingService ISpendingService
intentStorage IIntentStorage
options IOptions<SweeperServiceOptions>
chainTimeProvider IBitcoinBlockchain
postSweepHandlers IEnumerable<IEventHandler<PostSweepActionEvent>>
logger ILogger<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

cancellationToken CancellationToken

Returns

Task