How to tell if events have been flushed to GA?

Aug 17, 2016 at 5:39 PM
Hello,

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.

Thanks,

Judd
Coordinator
Sep 27, 2016 at 12: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()