示例#1
0
        public void LogRequest(IPAddress ip, Dictionary <string, string> dictionary, string RequestType = "REQUEST")
        {
            var txtparam             = string.Join("&", dictionary.Select(x => x.Key + "=" + x.Value));
            DataExchangeLogItem item = new DataExchangeLogItem
            {
                Time      = DateTime.Now,
                IP        = ip.ToString(),
                Type      = RequestType,
                Parameter = txtparam
            };

            AddToList(item);

            webSocket.PushMessageAllClinet("NEW_REQUEST");
        }