SendPulseTimingEventNow() private method

private SendPulseTimingEventNow ( RaygunPulseEventType eventType, string name, long milliseconds ) : void
eventType RaygunPulseEventType
name string
milliseconds long
return void
Example #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);
     }
 }
Example #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);
            }
        }