コード例 #1
0
        public void SendEvent(string category, string action, string label, int?value)
        {
            try
            {
                var nvc = HitInfoFactory.CreateEventHit(BasePostDataValues, category, action, label, value);

                sendImmediately(nvc);
            }
            catch
            {
            }
        }
コード例 #2
0
            public ITrackerBatch AddEvent(string category, string action, string label, int?value)
            {
                var hit = HitInfoFactory.CreateEventHit(_tracker.BasePostDataValues, category, action, label, value);

                checkFlush();

                lock (_syncRoot)
                {
                    _cache.Add(hit);
                }

                return(this);
            }