Ejemplo n.º 1
0
        public ConcurrentRPC(RPCService rpc, int accountId)
        {
            RPC = rpc;
            AccountId = accountId;

            AggregatedStatistics = new AggregatedStats[StatisticsService.Seasons];
        }
Ejemplo n.º 2
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);
     }
 }
Ejemplo n.º 3
0
 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();
     }
 }
Ejemplo n.º 4
0
 void Connect()
 {
     RPC = new RPCService(ConnectionData, OnConnect);
     WriteLine("Connecting to the server");
     RPC.Connect();
 }
Ejemplo n.º 5
0
 public MasteryService(RPCService rpc)
 {
     RPC = rpc;
 }
Ejemplo n.º 6
0
 public ConcurrentRPC(RPCService rpc, int accountId)
 {
     RPC = rpc;
     AccountId = accountId;
 }
Ejemplo n.º 7
0
 /** Other Methods */
 static void quit(RPCService RPC)
 {
     RPC.Disconnect();
     GC.Collect();
     Process.GetCurrentProcess().Kill();
 }
Ejemplo n.º 8
0
 void Connect()
 {
     //Obtain a lock on the profile to avoid race conditions while the user is editing the data
     lock (Profile)
     {
         if (Profile.Login == null)
         {
             //The user has removed the login for this worker after the worker had been previously connecting - cancel
             WriteLine("No login specified");
             return;
         }
         else
         {
             ConnectionProfile connectionData = new ConnectionProfile(AuthenticationProfile, Profile.Region, Configuration.Proxy, Profile.Login.Username.ToLower(), Profile.Login.Password);
             RPC = new RPCService(connectionData, OnConnect, OnDisconnect);
             WriteLine("Connecting to the server");
         }
     }
     RPC.Connect();
 }
Ejemplo n.º 9
0
 public ClientFacadeService(RPCService rpc)
 {
     RPC             = rpc;
     loginDataPacket = null;
 }
Ejemplo n.º 10
0
 void Connect()
 {
     RPC = new RPCService(ConnectionData, OnConnect, OnDisconnect, OnNetStatus);
     RPC.Connect();
 }
Ejemplo n.º 11
0
 public SummonerService(RPCService rpc)
 {
     RPC = rpc;
 }
Ejemplo n.º 12
0
 public LoginService(RPCService rpc)
 {
     RPC = rpc;
 }
Ejemplo n.º 13
0
 public GameService(RPCService rpc)
 {
     RPC = rpc;
 }
Ejemplo n.º 14
0
 public MatchmakerService(RPCService rpc)
 {
     RPC = rpc;
 }
Ejemplo n.º 15
0
 public InventoryService(RPCService rpc)
 {
     RPC = rpc;
 }