public ConcurrentRPC(RPCService rpc, int accountId) { RPC = rpc; AccountId = accountId; AggregatedStatistics = new AggregatedStats[StatisticsService.Seasons]; }
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(); } }
void Connect() { RPC = new RPCService(ConnectionData, OnConnect); WriteLine("Connecting to the server"); RPC.Connect(); }
public MasteryService(RPCService rpc) { RPC = rpc; }
public ConcurrentRPC(RPCService rpc, int accountId) { RPC = rpc; AccountId = accountId; }
/** Other Methods */ static void quit(RPCService RPC) { RPC.Disconnect(); GC.Collect(); Process.GetCurrentProcess().Kill(); }
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(); }
public ClientFacadeService(RPCService rpc) { RPC = rpc; loginDataPacket = null; }
void Connect() { RPC = new RPCService(ConnectionData, OnConnect, OnDisconnect, OnNetStatus); RPC.Connect(); }
public SummonerService(RPCService rpc) { RPC = rpc; }
public LoginService(RPCService rpc) { RPC = rpc; }
public GameService(RPCService rpc) { RPC = rpc; }
public MatchmakerService(RPCService rpc) { RPC = rpc; }
public InventoryService(RPCService rpc) { RPC = rpc; }