Class IntentGenerationService
public class IntentGenerationService : IIntentGenerationService, IAsyncDisposable
- Inheritance
-
IntentGenerationService
- Implements
- Inherited Members
Constructors
IntentGenerationService(IClientTransport, IFeeEstimator, ICoinService, IWalletProvider, IIntentStorage, ISafetyService, IContractStorage, IVtxoStorage, IIntentScheduler, IOptions<IntentGenerationServiceOptions>?, ILogger<IntentGenerationService>?)
public IntentGenerationService(IClientTransport clientTransport, IFeeEstimator feeEstimator, ICoinService coinService, IWalletProvider walletProvider, IIntentStorage intentStorage, ISafetyService safetyService, IContractStorage contractStorage, IVtxoStorage vtxoStorage, IIntentScheduler intentScheduler, IOptions<IntentGenerationServiceOptions>? options = null, ILogger<IntentGenerationService>? logger = null)
Parameters
clientTransportIClientTransportfeeEstimatorIFeeEstimatorcoinServiceICoinServicewalletProviderIWalletProviderintentStorageIIntentStoragesafetyServiceISafetyServicecontractStorageIContractStoragevtxoStorageIVtxoStorageintentSchedulerIIntentScheduleroptionsIOptions<IntentGenerationServiceOptions>loggerILogger<IntentGenerationService>
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.
GenerateManualIntent(string, ArkIntentSpec, CancellationToken)
public Task<string> GenerateManualIntent(string walletId, ArkIntentSpec spec, CancellationToken cancellationToken = default)
Parameters
walletIdstringspecArkIntentSpeccancellationTokenCancellationToken
Returns
StartAsync(CancellationToken)
public Task StartAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationToken