NServiceBus.Conventions.IsEncryptedProperty C# (CSharp) Method

IsEncryptedProperty() public method

Returns true if the given property should be encrypted.
public IsEncryptedProperty ( PropertyInfo property ) : bool
property System.Reflection.PropertyInfo
return bool
        public bool IsEncryptedProperty(PropertyInfo property)
        {
            Guard.AgainstNull(nameof(property), property);
            try
            {
                //the message mutator will cache the whole message so we don't need to cache here
                return IsEncryptedPropertyAction(property);
            }
            catch (Exception ex)
            {
                throw new Exception("Failed to evaluate Encrypted Property convention. See inner exception for details.", ex);
            }
        }