Esempio n. 1
0
 public ControlConnection(
     ITcpClient client,
     IIncomingMessageDispatcher dispatcher,
     ILogger <ControlConnection>?logger = null)
 {
     Client     = client;
     Dispatcher = dispatcher;
     Logger     = logger ?? NullLogger <ControlConnection> .Instance;
 }
 public DiscoveryMessageListener(
     IUdpClient client,
     IIncomingMessageDispatcher dispatcher,
     ILogger <DiscoveryMessageListener> logger)
 {
     UdpClient  = client;
     Dispatcher = dispatcher;
     Logger     = logger;
 }