Exemple #1
0
 void Connect()
 {
     ConsoleOut("Connecting to server (" + config.Region.Abbreviation + ".LOL.riotgames.com) .....");
     try
     {
         RPC = new RPCService(connectionData, OnConnect, OnDisconnect);
         RPC.Connect();
     }
     catch (Exception ex)
     {
         ConsoleOut("Server connection error: " + ex.Message);
     }
 }
 public void Run()
 {
     while (Running)
     {
         OnConnectEvent = new AutoResetEvent(false);
         ConnectionSuccess = false;
         WriteWithTimestamp("Connecting to server...");
         try
         {
             RPC = new RPCService(ConnectionData, OnConnect, OnDisconnect, OnNetStatus);
             RPC.Connect();
         }
         catch (Exception exception)
         {
             Output.WriteLine("Connection error: " + exception.Message);
         }
         OnConnectEvent.WaitOne();
         if (ConnectionSuccess)
             PerformQueries();
     }
 }
Exemple #3
0
 void Connect()
 {
     RPC = new RPCService(ConnectionData, OnConnect);
     WriteLine("Connecting to the server");
     RPC.Connect();
 }
 void Connect()
 {
     RPC = new RPCService(ConnectionData, OnConnect, OnDisconnect, OnNetStatus);
     RPC.Connect();
 }