Esempio n. 1
0
 public static void CallKeepAliveSent(this SenderHooks hooks, PeerHash peer)
 {
     hooks.OnKeepAliveSent?.Invoke(new KeepAliveSent
     {
         Peer = peer
     });
 }
Esempio n. 2
0
 public static void CallMessageIgnored(this SenderHooks hooks, PeerHash peer, string type, SenderMessage message)
 {
     hooks.OnMessageIgnored?.Invoke(new MessageIgnored
     {
         Peer    = peer,
         Type    = type,
         Payload = message
     });
 }
Esempio n. 3
0
 public SenderService Build(SenderHooks hooks)
 {
     return(new SenderService(configuration, hooks));
 }
Esempio n. 4
0
 public SenderService(SenderConfiguration configuration, SenderHooks hooks)
 {
     context = new SenderContext(configuration, hooks);
 }