Пример #1
0
        /// <summary>
        /// Method is called when customer registration was attempted but failed.
        /// The <paramref name="e" /> has an integer indicating the attempt number .
        /// </summary>
        /// <param name="sender">The sender of the event</param>
        /// <param name="e">The event</param>
        private async void RegistrationAttempted(object sender, CustomerRegistrationAttemptedEventArgs e)
        {
            if (Activity == null)
            {
                return;
            }

            if (e.Channel == DataChannel.Fallback)
            {
                RegistrationByFallbackFailed();
            }
            else
            {
                RegistrationByDataFailed();
            }
        }
        /// <summary>
        /// Method is called when customer registration was attempted but failed.
        /// The <paramref name="e" /> has an integer indicating the attempt number .
        /// </summary>
        /// <param name="sender">The sender of the event</param>
        /// <param name="e">The event</param>
        private void RegistrationAttempted(object sender, CustomerRegistrationAttemptedEventArgs e)
        {
            if (Activity == null)
            {
                cachedAction = () => { RegistrationAttempted(sender, e); };
                return;
            }

            if (e.Channel == DataChannel.Fallback)
            {
                RegistrationByFallbackFailed(e.CurrentAttempt);
            }
            else
            {
                RegistrationByDataFailed(e.CurrentAttempt);
            }

            this.WizardActivity.HideWait();
        }