protected override VerifyResult VerifyImpl(VerifiableObjectContext context)
        {
            var valueContext = context?.GetValue("Name");

            if (valueContext is null)
            {
                return(_options.ReturnNullReferenceOrSuccess());
            }
            if (valueContext.Value is string { Length : 32 })
Exemplo n.º 2
0
        /// <summary>
        /// Get value from VerifiableObjectContext
        /// </summary>
        /// <param name="context"></param>
        /// <returns></returns>
        protected object GetValueFrom(VerifiableObjectContext context)
        {
            var memberContext = context?.GetValue(VerifiableMember.MemberName);

            return(memberContext?.GetValue());
        }