Class ChannelMemoryRepository
- Namespace
- NLightning.Infrastructure.Repositories.Memory
- Assembly
- NLightning.Infrastructure.Repositories.dll
public class ChannelMemoryRepository : IChannelMemoryRepository
- Inheritance
-
ChannelMemoryRepository
- Implements
-
- Inherited Members
-
Methods
AddChannel(ChannelModel)
public void AddChannel(ChannelModel channel)
Parameters
channel ChannelModel
AddTemporaryChannel(CompactPubKey, ChannelModel)
public void AddTemporaryChannel(CompactPubKey compactPubKey, ChannelModel channel)
Parameters
compactPubKey CompactPubKey
channel ChannelModel
FindChannels(Func<ChannelModel, bool>)
public List<ChannelModel> FindChannels(Func<ChannelModel, bool> predicate)
Parameters
predicate Func<ChannelModel, bool>
Returns
- List<ChannelModel>
RemoveChannel(ChannelId)
public void RemoveChannel(ChannelId channelId)
Parameters
channelId ChannelId
RemoveTemporaryChannel(CompactPubKey, ChannelId)
public void RemoveTemporaryChannel(CompactPubKey compactPubKey, ChannelId channelId)
Parameters
compactPubKey CompactPubKey
channelId ChannelId
TryGetChannel(ChannelId, out ChannelModel)
public bool TryGetChannel(ChannelId channelId, out ChannelModel channel)
Parameters
channelId ChannelId
channel ChannelModel
Returns
- bool
TryGetChannelState(ChannelId, out ChannelState)
public bool TryGetChannelState(ChannelId channelId, out ChannelState channelState)
Parameters
channelId ChannelId
channelState ChannelState
Returns
- bool
TryGetTemporaryChannel(CompactPubKey, ChannelId, out ChannelModel)
public bool TryGetTemporaryChannel(CompactPubKey compactPubKey, ChannelId channelId, out ChannelModel channel)
Parameters
compactPubKey CompactPubKey
channelId ChannelId
channel ChannelModel
Returns
- bool
TryGetTemporaryChannelState(CompactPubKey, ChannelId, out ChannelState)
public bool TryGetTemporaryChannelState(CompactPubKey compactPubKey, ChannelId channelId, out ChannelState channelState)
Parameters
compactPubKey CompactPubKey
channelId ChannelId
channelState ChannelState
Returns
- bool
UpdateChannel(ChannelModel)
public void UpdateChannel(ChannelModel channel)
Parameters
channel ChannelModel
UpdateTemporaryChannel(CompactPubKey, ChannelModel)
public void UpdateTemporaryChannel(CompactPubKey compactPubKey, ChannelModel channel)
Parameters
compactPubKey CompactPubKey
channel ChannelModel