SendPulseTimingEvent() public method

Sends a pulse timing event to Raygun. The message is sent on a background thread.
public SendPulseTimingEvent ( RaygunPulseEventType eventType, string name, long milliseconds ) : void
eventType RaygunPulseEventType The type of event that occurred.
name string The name of the event resource such as the view name or URL of a network call.
milliseconds long The duration of the event in milliseconds.
return void
コード例 #1
0
ファイル: Pulse.cs プロジェクト: pjhuck/raygun4net
 private static void OnDidBecomeActive(NSNotification notification)
 {
     //Console.WriteLine("SESSION START");
     _raygunClient.SendPulseSessionEvent(RaygunPulseSessionEventType.SessionStart);
     if (_lastViewName != null)
     {
         _raygunClient.SendPulseTimingEvent(RaygunPulseEventType.ViewLoaded, _lastViewName, 0);
     }
 }
コード例 #2
0
        private static void OnDidBecomeActive(NSNotification notification)
        {
            _raygunClient.EnsurePulseSessionStarted();

            if (_lastViewName != null)
            {
                _raygunClient.SendPulseTimingEvent(RaygunPulseEventType.ViewLoaded, _lastViewName, 0);
            }
        }
コード例 #3
0
        public void OnActivityResumed(Activity activity)
        {
            if (_currentActivity == null)
            {
                _raygunClient.EnsurePulseSessionStarted();
            }

            string activityName = GetActivityName(activity);
            long   duration     = 0;

            if (activity == _currentActivity)
            {
                _timer.Stop();
                duration = _timer.ElapsedMilliseconds;
            }
            _currentActivity = activity;

            _raygunClient.SendPulseTimingEvent(RaygunPulseEventType.ViewLoaded, activityName, duration);
        }
コード例 #4
0
ファイル: Pulse.cs プロジェクト: pjhuck/raygun4net
        public void OnActivityResumed(Activity activity)
        {
            if (_currentActivity == null)
            {
                _raygunClient.SendPulseSessionEvent(RaygunPulseSessionEventType.SessionStart);
            }

            string activityName = GetActivityName(activity);
            long   duration     = 0;

            if (activity == _currentActivity)
            {
                _timer.Stop();
                duration = _timer.ElapsedMilliseconds;
            }
            _currentActivity = activity;

            _raygunClient.SendPulseTimingEvent(RaygunPulseEventType.ViewLoaded, activityName, duration);
            //Console.WriteLine("ACTIVITY RESUMED " + activity.Title + " DURATION: " + duration);
        }