Override DispatchPeriod value, for example when recording Unhandled exception

May 10, 2013 at 7:25 PM
Would it be possible to override the DispatchPeriod just for a single call?

I was thinking of the following scenario:

DispatchPeriod = 30 sec so every 30 sec a call to Google

If an unhandled exception occurs, you want to sent the GoogleAnalytics.EasyTracker.GetTracker().SendException(exception, false) immediately, because you cannot wait 30 sec, the application is closing after unhandled exception.

Or will the message still be dispatched when you close the program even in the case of an unhandled exception?

Thinking of this, I might try this tomorrow and see if the SendExceptions are recorded in Google Analytics
May 10, 2013 at 8:12 PM
Hi,

Was curious to test this, but I saw in your source code and test program that you already handle the unhandled exceptions by attaching a handler and indeed sending the data to Google before app quits. Tested it and see the exception in Google Analytics dashboard

Wow, this is really awesome, I can now see the exception with trace almost real time in Google Analytics. Used to do this by uploading the exception to my own web server, but your way is much nicer! Thanks a lot for such a nice framework.
Coordinator
May 10, 2013 at 10:12 PM
Yup, you found it! :) Thanks for the positive feedback.