/// <summary> /// Called when the transaction status has changed. /// It log the current transaction status. /// </summary> /// <param name="sender">Authorization process.</param> /// <param name="e">Authorization status changing event arguments.</param> private void OnTransactionStateChange(object sender, AuthorizationStatusChangeEventArgs e) { this.Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () => { this.Log(e.AuthorizationStatus + " " + e.Message); }).AsTask(); }
/// <summary> /// Called when the transaction status has changed. /// It log the current transaction status. /// </summary> /// <param name="sender">Authorization process.</param> /// <param name="e">Authorization status changing event arguments.</param> private void OnTransactionStateChange(object sender, AuthorizationStatusChangeEventArgs e) { this.Log(e.AuthorizationStatus + " " + e.Message); Application.Current.Dispatcher.Invoke(DispatcherPriority.Background, new ThreadStart(delegate { })); }