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
channelMemoryRepositoryIChannelMemoryRepositoryloggerILogger<OpenChannelClientSubscriptionHandler>peerManagerIPeerManagerutxoMemoryRepositoryIUtxoMemoryRepository
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(OpenChannelClientSubscriptionRequest, CancellationToken)
Handles the execution of a client command asynchronously.
public Task<OpenChannelClientSubscriptionResponse> HandleAsync(OpenChannelClientSubscriptionRequest request, CancellationToken ct)
Parameters
requestOpenChannelClientSubscriptionRequestThe request object containing the necessary data to handle the command.
ctCancellationTokenA 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.