Class ChannelManager
- Namespace
- NLightning.Application.Channels.Managers
- Assembly
- NLightning.Application.dll
public class ChannelManager : IChannelManager
- Inheritance
-
ChannelManager
- Implements
- Inherited Members
Constructors
ChannelManager(IBlockchainMonitor, IChannelMemoryRepository, ILogger<ChannelManager>, ILightningSigner, IServiceProvider)
public ChannelManager(IBlockchainMonitor blockchainMonitor, IChannelMemoryRepository channelMemoryRepository, ILogger<ChannelManager> logger, ILightningSigner lightningSigner, IServiceProvider serviceProvider)
Parameters
blockchainMonitorIBlockchainMonitorchannelMemoryRepositoryIChannelMemoryRepositoryloggerILogger<ChannelManager>lightningSignerILightningSignerserviceProviderIServiceProvider
Methods
HandleChannelMessageAsync(IChannelMessage, FeatureOptions, CompactPubKey)
public Task<IChannelMessage?> HandleChannelMessageAsync(IChannelMessage message, FeatureOptions negotiatedFeatures, CompactPubKey peerPubKey)
Parameters
messageIChannelMessagenegotiatedFeaturesFeatureOptionspeerPubKeyCompactPubKey
Returns
RegisterExistingChannelAsync(ChannelModel)
public Task RegisterExistingChannelAsync(ChannelModel channel)
Parameters
channelChannelModel
Returns
Events
OnResponseMessageReady
public event EventHandler<ChannelResponseMessageEventArgs>? OnResponseMessageReady