Ejemplo n.º 1
0
        /// <summary>
        /// End Countly tracking session.
        /// Call from your App.xaml.cs Application_Deactivated and Application_Closing events.
        /// </summary>
        public static async Task EndSession()
        {
            if (Timer != null)
            {
                Timer.Dispose();
                Timer = null;
            }

            await Upload(CountlyRequest.CreateEndSession());
        }