AppMetrics.Client.Tracker.SendPacket C# (CSharp) Method

SendPacket() static private method

static private SendPacket ( string url, string accessKey, string appKey, string packet ) : void
url string
accessKey string
appKey string
packet string
return void
        static void SendPacket(string url, string accessKey, string appKey, string packet)
        {
            var args = new Dictionary<string, string>()
                {
                    { "AccessKey", accessKey },
                    { "MessageAppKey", appKey },
                    { "MessagesList", packet },
                };

            var responseText = HttpUtil.Request(url, args, "POST");

            CountNewRequest();
            if (!string.IsNullOrEmpty(responseText))
                throw new ApplicationException(responseText);
        }