This project has moved and is read-only. For the latest updates, please go here.

How to tell if events have been flushed to GA?

Aug 17, 2016 at 6:39 PM

First off thank you for the SDK.

I have a question. I would like to close my session when I exit my application. How can I be sure that the final event has made it out of the app before I close it?

I am using your tools in a winforms app on the desktop. I was going to just put the close session in the shut down routine for the forms app, but I want to make sure that the final event is sent before I kill that process.


Sep 27, 2016 at 1:04 AM
Glad to hear you're enjoying the SDK! To ensure all logs have been dispatched/flushed, you can call:
await GAServiceManager.Current.Dispatch()