Class OpenChannelClientHandler
- Namespace
- NLightning.Daemon.Handlers
- Assembly
- NLightning.Daemon.dll
public sealed class OpenChannelClientHandler : IClientCommandHandler<OpenChannelClientRequest, OpenChannelClientResponse>
- Inheritance
-
OpenChannelClientHandler
- Implements
- Inherited Members
Constructors
OpenChannelClientHandler(IBlockchainMonitor, IChannelFactory, IChannelMemoryRepository, ILogger<OpenChannelClientHandler>, IMessageFactory, IPeerManager, IUtxoMemoryRepository)
public OpenChannelClientHandler(IBlockchainMonitor blockchainMonitor, IChannelFactory channelFactory, IChannelMemoryRepository channelMemoryRepository, ILogger<OpenChannelClientHandler> logger, IMessageFactory messageFactory, IPeerManager peerManager, IUtxoMemoryRepository utxoMemoryRepository)
Parameters
blockchainMonitorIBlockchainMonitorchannelFactoryIChannelFactorychannelMemoryRepositoryIChannelMemoryRepositoryloggerILogger<OpenChannelClientHandler>messageFactoryIMessageFactorypeerManagerIPeerManagerutxoMemoryRepositoryIUtxoMemoryRepository
Properties
Command
Gets the client command associated with the handler.
public ClientCommand Command { get; }
Property Value
Remarks
This property returns a value from the ClientCommand enumeration,
representing the specific command handled by the implementing class.
Methods
HandleAsync(OpenChannelClientRequest, CancellationToken)
Handles the execution of a client command asynchronously.
public Task<OpenChannelClientResponse> HandleAsync(OpenChannelClientRequest request, CancellationToken ct)
Parameters
requestOpenChannelClientRequestThe request object containing the necessary data to handle the command.
ctCancellationTokenA cancellation token that can be used to cancel the operation.
Returns
- Task<OpenChannelClientResponse>
A task representing the asynchronous operation, containing the response of the command execution.