Exemplo n.º 1
0
 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);
     });
 }
Exemplo n.º 2
0
 public MainMessage CreateHelloMessage()
 {
     return(ISystemService.CreateHelloMessage(_api.OpenAPI.Config));
 }