示例#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);
     }
 }
 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
 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();
 }
 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;
 }