PRoConEvents.MULTIbalancer.SendCacheRequest C# (CSharp) Method

SendCacheRequest() private method

private SendCacheRequest ( String name, String requestType ) : void
name String
requestType String
return void
        private void SendCacheRequest(String name, String requestType)
        {
            try {
            /*
            Called in the FetchLoop thread
            */
            Hashtable request = new Hashtable();
            request["playerName"] = name;
            request["pluginName"] = GetPluginName();
            request["pluginMethod"] = "CacheResponse";
            request["requestType"] = requestType;

            // Set up response entry
            PlayerModel player = GetPlayer(name);
            if (player == null) return;
            FetchInfo status = (requestType == "clanTag") ? player.TagFetchStatus : player.StatsFetchStatus;
            status.State = FetchState.Requesting;
            status.Since = DateTime.Now;
            status.RequestType = requestType;
            DebugFetch("Sending cache request " + requestType + "(^b" + name + "^n)");

            // Send request
            if (!fIsEnabled || fAborted) return;
            this.ExecuteCommand("procon.protected.plugins.call", "CBattlelogCache", "PlayerLookup", JSON.JsonEncode(request));
            } catch (Exception e) {
            ConsoleException(e);
            }
        }
MULTIbalancer