BloggingSystem.Services.Validators.UserValidator.ValidateAuthenticationCode C# (CSharp) Метод

ValidateAuthenticationCode() публичный статический Метод

public static ValidateAuthenticationCode ( string authCode ) : void
authCode string
Результат void
        public static void ValidateAuthenticationCode(string authCode)
        {
            if (authCode == null)
            {
                throw new ArgumentNullException("authCode", "Authentication code cannot be null!");
            }

            if (authCode.Length != Sha1CodeLength)
            {
                throw new ArgumentOutOfRangeException("authCode", "Invalid user authentication!");
            }
        }