Interface ITransportService
- Namespace
- NLightning.Domain.Transport
- Assembly
- NLightning.Domain.dll
public interface ITransportService : IDisposable
- Inherited Members
-
Properties
IsConnected
bool IsConnected { get; }
Property Value
- bool
IsInitiator
bool IsInitiator { get; }
Property Value
- bool
RemoteStaticPublicKey
PubKey? RemoteStaticPublicKey { get; }
Property Value
- PubKey
Methods
InitializeAsync()
Returns
- Task
WriteMessageAsync(IMessage, CancellationToken)
Task WriteMessageAsync(IMessage message, CancellationToken cancellationToken = default)
Parameters
message
IMessage
cancellationToken
CancellationToken
Returns
- Task
Events
ExceptionRaised
event EventHandler<Exception>? ExceptionRaised
Event Type
- EventHandler<Exception>
MessageReceived
event EventHandler<MemoryStream>? MessageReceived
Event Type
- EventHandler<MemoryStream>