public void Start() { this._log.Debug("In method Start()."); // say hi this._log.Info("Contacting Main Server..."); udpListenner.SendAsync(ISystemService.CreateHelloMessage(_config), _config.MainServer, this.AfterFirstResponse, (e) => { _log.Error(new ServerException("Main Server is unreachable", e)); Environment.Exit(1); }); }
public MainMessage CreateHelloMessage() { return(ISystemService.CreateHelloMessage(_api.OpenAPI.Config)); }