async void CloseSessionButton_TouchUpInside(object sender, EventArgs args)
        {
            MintLogResult logResult = await Mint.SharedInstance.CloseSessionAsync();

            Debug.WriteLine("Log close active session request {0}",
                            logResult.ResultState == MintResultState.OKResultState
                                ? "Succeed" : "Failed");
        }
        private void OnUnhandledSyncExceptionHandled(Exception exception, MintLogResult logResult)
        {
            SplunkUnhandledEventArgs eventArgs = new SplunkUnhandledEventArgs
            {
                ClientJsonRequest   = logResult.ClientRequest,
                ExceptionObject     = exception,
                HandledSuccessfully = logResult.ResultState == MintResultState.OKResultState
            };

//			UnhandledExceptionHandled (this, eventArgs);
        }
        async void LogLevelEventButton_TouchUpInside(object sender, EventArgs args)
        {
            // log type DTO only for enterprise plan
//			MintLogResult logResult = await Mint.SharedInstance.LogEventWithNameAsync ("SplunkMint Xamarin Log Level Event", MintLogLevel.NoticeLogLevel);

            MintLogResult logResult = await Mint.SharedInstance.LogEventWithTagAsync("I pressed the log event with tag button!");

            Debug.WriteLine("LogLevelEvent ResultState: {0}",
                            logResult.ResultState == MintResultState.OKResultState
                                ? "OK" : "Failed");
        }
        async void LogHandledException2Button_TouchUpInside(object sender, EventArgs args)
        {
            try
            {
                throw new NullReferenceException("This is a purposed NullReference handled exception");
            }
            catch (Exception ex)
            {
                MintLogResult logResult = await Mint.SharedInstance.LogExceptionAsync(ex.ToSplunkNSException(), "Key1", "Value1");

                Debug.WriteLine("Logged Exception Request: {0}", logResult.ClientRequest);
            }
        }
        async void LogHandledException1Button_TouchUpInside(object sender, EventArgs args)
        {
            try
            {
                throw new ArgumentNullException("aParam", "This is a purposed handled exception");
            }
            catch (Exception ex)
            {
                LimitedExtraDataList extraDataList = new LimitedExtraDataList();
                extraDataList.AddWithKey("HandledExceptionKey1", "HandledExceptionValue1");
                MintLogResult logResult = await Mint.SharedInstance.LogExceptionAsync(ex.ToSplunkNSException(), extraDataList);

                Debug.WriteLine("Logged Exception Request: {0}", logResult.ClientRequest);
            }
        }
		private void OnUnhandledSyncExceptionHandled(Exception exception, MintLogResult logResult)
		{
			SplunkUnhandledEventArgs eventArgs = new SplunkUnhandledEventArgs
			{
				ClientJsonRequest = logResult.ClientRequest,
				ExceptionObject = exception,
				HandledSuccessfully = logResult.ResultState == MintResultState.OKResultState
			};

//			UnhandledExceptionHandled (this, eventArgs);
		}
        private void UnobservedTaskExceptionsHandler(object sender, UnobservedTaskExceptionEventArgs e)
        {
            Debug.WriteLine("UnobservedTaskExceptionsHandler invoked");
            MintLogResult logResult = LogUnobservedUnawaitedException(e.Exception);
//			OnUnhandledSyncExceptionHandled(e.Exception, logResult);
        }
        private void SyncContextExceptionHandler(object sender, Exception exception)
        {
            Debug.WriteLine("SyncContextExceptionHandler invoked");
            MintLogResult logResult = LogUnobservedUnawaitedException(exception);
//			OnUnhandledSyncExceptionHandled(exception, logResult);
        }