Ejemplo n.º 1
0
        public async Task ClearSessionDataAsync()
        {
            _lastSessionJsonStr = null;
            try
            {
                await SessionUtility.DeleteSerializedSessionMetaDataAsync();

                LoggingService.LogInfo($"[SessionManager] Successfully deleted session meta data.");
            }
            catch (Exception ex)
            {
                LoggingService.LogError($"[SessionManager] Failed to delete session meta data: {ex.Message}");
            }
        }
Ejemplo n.º 2
0
        public async Task ClearSessionDataAsync()
        {
            _lastSessionJsonStr = null;
            try
            {
                await SessionUtility.DeleteSerializedSessionMetaDataAsync(_sessionMetaDataFileName);

                LoggingService.LogInfo($"[{nameof(SessionManager)}] Successfully deleted session meta data.");
            }
            catch (Exception ex)
            {
                LoggingService.LogError($"[{nameof(SessionManager)}] Failed to delete session meta data: {ex.Message}");
                Analytics.TrackEvent("SessionManager_FailedToDeleteSessionMetaData", new Dictionary <string, string>()
                {
                    { "Exception", ex.Message }
                });
            }
        }