Пример #1
0
 public ControlConnection(
     ITcpClient client,
     IIncomingMessageDispatcher dispatcher,
     ILogger <ControlConnection>?logger = null)
 {
     Client     = client;
     Dispatcher = dispatcher;
     Logger     = logger ?? NullLogger <ControlConnection> .Instance;
 }
Пример #2
0
 public DiscoveryMessageListener(
     IUdpClient client,
     IIncomingMessageDispatcher dispatcher,
     ILogger <DiscoveryMessageListener> logger)
 {
     UdpClient  = client;
     Dispatcher = dispatcher;
     Logger     = logger;
 }