コード例 #1
0
        /// <summary>
        /// Checks the email.
        /// </summary>
        /// <param name="email">The email.</param>
        /// <returns>Is Valid Email</returns>
        public static bool CheckEmail(string email)
        {
            bool isSuccess;

            using (KioskServiceClient client = new KioskServiceClient())
            {
                try
                {
                    isSuccess = !client.CheckEmail(email);
                }
                catch (Exception ex)
                {
                    Logger.Log(EventLogEntryType.Error, ex, BaseController.StationId);
                    BaseController.RaiseOnThrowExceptionEvent();
                    isSuccess = false;
                }
                finally
                {
                    client.Close();
                }
            }

            return(isSuccess);
        }