예제 #1
0
        public ConcurrentRPC(RPCService rpc, int accountId)
        {
            RPC = rpc;
            AccountId = accountId;

            AggregatedStatistics = new AggregatedStats[StatisticsService.Seasons];
        }
예제 #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);
     }
 }
예제 #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();
     }
 }
예제 #4
0
 void Connect()
 {
     RPC = new RPCService(ConnectionData, OnConnect);
     WriteLine("Connecting to the server");
     RPC.Connect();
 }
예제 #5
0
 public MasteryService(RPCService rpc)
 {
     RPC = rpc;
 }
예제 #6
0
 public ConcurrentRPC(RPCService rpc, int accountId)
 {
     RPC = rpc;
     AccountId = accountId;
 }
예제 #7
0
 /** Other Methods */
 static void quit(RPCService RPC)
 {
     RPC.Disconnect();
     GC.Collect();
     Process.GetCurrentProcess().Kill();
 }
예제 #8
0
파일: Worker.cs 프로젝트: Rejna/RiotControl
 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();
 }
예제 #9
0
 public ClientFacadeService(RPCService rpc)
 {
     RPC             = rpc;
     loginDataPacket = null;
 }
예제 #10
0
 void Connect()
 {
     RPC = new RPCService(ConnectionData, OnConnect, OnDisconnect, OnNetStatus);
     RPC.Connect();
 }
예제 #11
0
 public SummonerService(RPCService rpc)
 {
     RPC = rpc;
 }
예제 #12
0
 public LoginService(RPCService rpc)
 {
     RPC = rpc;
 }
예제 #13
0
 public GameService(RPCService rpc)
 {
     RPC = rpc;
 }
예제 #14
0
 public MatchmakerService(RPCService rpc)
 {
     RPC = rpc;
 }
예제 #15
0
 public InventoryService(RPCService rpc)
 {
     RPC = rpc;
 }