public AddressAndDiscoveryServer(IDiscoveryServerCallbacks callbacks, UInt16 timeInterval)
        {
            _callbacks    = callbacks;
            _timeInterval = timeInterval;
            _data         = new ArrayList();
            int period = timeInterval * 1000;

            _timer = new Timer(MyTimerCallback, null, period, period);
        }
 public AddressAndDiscoveryServer(IDiscoveryServerCallbacks callbacks, UInt16 timeInterval)
 {
     _callbacks = callbacks;
     _timeInterval = timeInterval;
     _data = new ArrayList();
     int period = timeInterval * 1000;
     _timer = new Timer(MyTimerCallback, null, period, period);
 }
 public AddressAndDiscoveryServer(IDiscoveryServerCallbacks callbacks)
     : this(callbacks, cDefaultTimeInterval)
 {
     // load old address mapping
     base.Load();
 }
 public AddressAndDiscoveryServer(IDiscoveryServerCallbacks callbacks)
     : this(callbacks, cDefaultTimeInterval)
 {
     // load old address mapping
     base.Load();
 }
Beispiel #5
0
 public static DiscoveryServerBuilder CreateFor(IConfigWatcher configWatcher, IDiscoveryServerCallbacks callbacks, int port = DefaultPort)
 => CreateFor(configWatcher, new[] { callbacks }, port);