Пример #1
0
        public void SendSocial(string action, string network, string target)
        {
            try
            {
                var nvc = HitInfoFactory.CreateSocialHit(BasePostDataValues, action, network, target);

                sendImmediately(nvc);
            }
            catch
            {
            }
        }
Пример #2
0
        public void SendScreenView(string screenName)
        {
            try
            {
                var nvc = HitInfoFactory.CreateScreenHit(BasePostDataValues, screenName);

                sendImmediately(nvc);
            }
            catch
            {
            }
        }
Пример #3
0
        public void SendException(string description, bool fatal)
        {
            try
            {
                var nvc = HitInfoFactory.CreateExceptionHit(BasePostDataValues, description, fatal);

                sendImmediately(nvc);
            }
            catch
            {
            }
        }
Пример #4
0
        public void SendTiming(string category, string action, string label, long milliseconds)
        {
            try
            {
                var nvc = HitInfoFactory.CreateTimingHit(BasePostDataValues, category, action, label, milliseconds);

                sendImmediately(nvc);
            }
            catch
            {
            }
        }
Пример #5
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
            {
            }
        }
Пример #6
0
            public ITrackerBatch AddException(string description, bool fatal)
            {
                var hit = HitInfoFactory.CreateExceptionHit(_tracker.BasePostDataValues, description, fatal);

                checkFlush();

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

                return(this);
            }
Пример #7
0
            public ITrackerBatch AddTiming(string category, string action, string label, long milliseconds)
            {
                var hit = HitInfoFactory.CreateTimingHit(_tracker.BasePostDataValues, category, action, label, milliseconds);

                checkFlush();

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

                return(this);
            }
Пример #8
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);
            }
Пример #9
0
            public ITrackerBatch AddScreenView(string screenName)
            {
                var hit = HitInfoFactory.CreateScreenHit(_tracker.BasePostDataValues, screenName);

                checkFlush();

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

                return(this);
            }