Mindscape.Raygun4Net.RaygunClient.SendPulseSessionEvent C# (CSharp) Method

SendPulseSessionEvent() private method

Sends a Pulse session event to Raygun. The message is sent on a background thread.
private SendPulseSessionEvent ( RaygunPulseSessionEventType eventType ) : void
eventType RaygunPulseSessionEventType The type of session event that occurred.
return void
        internal void SendPulseSessionEvent(RaygunPulseSessionEventType eventType)
        {
            if (eventType == RaygunPulseSessionEventType.SessionStart)
              {
            _sessionId = Guid.NewGuid().ToString();
              }
              ThreadPool.QueueUserWorkItem(c => SendPulseSessionEventCore(eventType));
        }

Usage Example

Example #1
0
 private static void OnDidBecomeActive(NSNotification notification)
 {
     //Console.WriteLine("SESSION START");
     _raygunClient.SendPulseSessionEvent(RaygunPulseSessionEventType.SessionStart);
     if (_lastViewName != null)
     {
         _raygunClient.SendPulseTimingEvent(RaygunPulseEventType.ViewLoaded, _lastViewName, 0);
     }
 }
All Usage Examples Of Mindscape.Raygun4Net.RaygunClient::SendPulseSessionEvent