Table of Contents

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

blockchainMonitor IBlockchainMonitor
channelFactory IChannelFactory
channelMemoryRepository IChannelMemoryRepository
logger ILogger<OpenChannelClientHandler>
messageFactory IMessageFactory
peerManager IPeerManager
utxoMemoryRepository IUtxoMemoryRepository

Properties

Command

Gets the client command associated with the handler.

public ClientCommand Command { get; }

Property Value

ClientCommand

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

request OpenChannelClientRequest

The request object containing the necessary data to handle the command.

ct CancellationToken

A 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.