ArmedCards.BusinessLogic.DomainServices.Game.ValidatePassphrase.Execute C# (CSharp) Метод

Execute() публичный Метод

Validate the passhrase policy
public Execute ( Entities.Game game, String passphrase ) : bool
game Entities.Game
passphrase String The user supplied passphrase
Результат bool
        public bool Execute(Entities.Game game, String passphrase)
        {
            Boolean policyValidated = true;

            if (game.IsPrivate && !String.IsNullOrEmpty(game.Passphrase))
            {
                policyValidated = String.Equals(game.Passphrase, passphrase);
            }
            
            return policyValidated;
        }
    }

Same methods

ValidatePassphrase::Execute ( Entities game, String passphrase ) : bool
ValidatePassphrase