SendPulseSessionEventNow() 개인적인 메소드

private SendPulseSessionEventNow ( RaygunPulseSessionEventType eventType ) : void
eventType RaygunPulseSessionEventType
리턴 void
예제 #1
0
파일: Pulse.cs 프로젝트: pjhuck/raygun4net
 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
파일: Pulse.cs 프로젝트: pjhuck/raygun4net
        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);
            }
        }