SendPulseSessionEventNow() приватный Метод

private SendPulseSessionEventNow ( RaygunPulseSessionEventType eventType ) : void
eventType RaygunPulseSessionEventType
Результат void
Пример #1
0
 internal static void SendRemainingActivity()
 {
     if (_pulse != null)
     {
         if (_timer.IsRunning && _currentActivity != null)
         {
             _timer.Stop();
             string activityName = GetActivityName(_currentActivity);
             _raygunClient.SendPulseTimingEventNow(RaygunPulseEventType.ViewLoaded, activityName, _timer.ElapsedMilliseconds);
         }
         _raygunClient.SendPulseSessionEventNow(RaygunPulseSessionEventType.SessionEnd);
     }
 }
Пример #2
0
        internal static void SendRemainingViews()
        {
            if (_raygunClient != null)
            {
                foreach (string view in _timers.Keys)
                {
                    long      duration = 0;
                    Stopwatch stopwatch;
                    _timers.TryGetValue(view, out stopwatch);
                    if (stopwatch != null)
                    {
                        stopwatch.Stop();
                        duration = stopwatch.ElapsedMilliseconds;
                    }
                    _raygunClient.SendPulseTimingEventNow(RaygunPulseEventType.ViewLoaded, view, duration);
                }

                _raygunClient.SendPulseSessionEventNow(RaygunPulseSessionEventType.SessionEnd);
            }
        }