public UdpClient() { _settings = _settingsLoader.ReadXml(); _datagramCollector = new DatagramCollector(); _datagramReceiver = new DatagramReceiver(_settings, _datagramCollector); Console.WriteLine("-----------------------------"); Console.WriteLine($" IP {_settings.IPAddress}, Port {_settings.Port} "); }
public SmartConfigJob(TimeSpan timeout) { this.Timeout = timeout; _broadcaster = new DatagramBroadcaster(); _receiver = new DatagramReceiver(); this._timer.Elapsed += Timer_Elapsed; }