Table of Contents

Class OpenChannelClientSubscriptionHandler

Namespace
NLightning.Daemon.Handlers
Assembly
NLightning.Daemon.dll
public class OpenChannelClientSubscriptionHandler : IClientCommandHandler<OpenChannelClientSubscriptionRequest, OpenChannelClientSubscriptionResponse>
Inheritance
OpenChannelClientSubscriptionHandler
Implements
Inherited Members

Constructors

OpenChannelClientSubscriptionHandler(IChannelMemoryRepository, ILogger<OpenChannelClientSubscriptionHandler>, IPeerManager, IUtxoMemoryRepository)

public OpenChannelClientSubscriptionHandler(IChannelMemoryRepository channelMemoryRepository, ILogger<OpenChannelClientSubscriptionHandler> logger, IPeerManager peerManager, IUtxoMemoryRepository utxoMemoryRepository)

Parameters

channelMemoryRepository IChannelMemoryRepository
logger ILogger<OpenChannelClientSubscriptionHandler>
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(OpenChannelClientSubscriptionRequest, CancellationToken)

Handles the execution of a client command asynchronously.

public Task<OpenChannelClientSubscriptionResponse> HandleAsync(OpenChannelClientSubscriptionRequest request, CancellationToken ct)

Parameters

request OpenChannelClientSubscriptionRequest

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<OpenChannelClientSubscriptionResponse>

A task representing the asynchronous operation, containing the response of the command execution.