Пример #1
0
 public PeerService(IUdpServerEventLoopGroupFactory udpServerEventLoopGroupFactory,
                    IUdpServerChannelFactory serverChannelFactory,
                    IPeerDiscovery peerDiscovery,
                    IEnumerable <IP2PMessageObserver> messageHandlers,
                    IPeerSettings peerSettings,
                    ILogger logger,
                    IHealthChecker healthChecker)
     : base(serverChannelFactory, logger, udpServerEventLoopGroupFactory)
 {
     _messageHandlers = messageHandlers;
     _peerSettings    = peerSettings;
     _healthChecker   = healthChecker;
     Discovery        = peerDiscovery;
 }
Пример #2
0
 protected UdpServer(IUdpServerChannelFactory serverChannelFactory,
                     ILogger logger,
                     IUdpServerEventLoopGroupFactory udpServerEventLoopGroupFactory)
     : base(serverChannelFactory, logger, udpServerEventLoopGroupFactory)
 {
 }